Hi guess, the problem is the 'Enjoy'- part You can't use quotes in a string that way. If you want to put restricted characters in a String, they have to be preceded by a backslash.
$data = 'Hey welcome to webpage, \'Enjoy\''; That should work fine. Cheers Frank On 24 Mrz., 20:50, Ramyak <[email protected]> wrote: > But for complex data say, $data = 'Hey welcome to webpage, 'Enjoy''; > > $("#element1").html($data); doesnt work because the javascript fails. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
