I am trying to add some additional html to a div with id slideshow using jQuery. My code:
The.html method is not available in XML documents. When.html is used to set an element's content, any content that was in that element is completely replaced by the new content. Additionally, jQuery removes other constructs such as data and event handlers from child elements before replacing those elements with the new content.
This isn't working, can anyone tell me what I am doing wrong?
SLaks2 Answers
You're mixing quotes.
Your string goes from the first '
to the second '
, meaning that the string only contains '<aflex: 1 1 100px;'>
your not escaping your quotes best way to fix is to put the append in single quotes
Not the answer you're looking for? Browse other questions tagged javascriptjquerystring or ask your own question.
I can't get this to work (from http://jquerymobile.com/demos/1.2.0/docs/content/content-collapsible.html):
I'm assuming it's because I haven't included jQuery mobile or something, but I'm not sure what I should add. This is what I have in my HTML head right now:
So basically, jquery and external javascript. How do I add jquery mobile? Or is that even the problem?
closed as off-topic by mishik, Florian Peschka, Erik Schierboom, Piotr Chojnacki, phant0mJul 11 '13 at 7:44
This question appears to be off-topic. The users who voted to close gave this specific reason:
- 'Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.' – mishik, Florian Peschka, Erik Schierboom, Piotr Chojnacki, phant0m
2 Answers
It looks like you are not including the jQuery mobile plugin.
Demo: Fiddle
Arun P JohnyArun P JohnyYou are missing the Mobile-JQuery library without which will not work
Check this fiddle
Vinod LouisVinod Louis