0
jQuery, Attributes and Content: Get & Set Content, 3rd page
If I am not mistaken, the example code: $(function() { $("#test").text("hello!"); }); will result in: <div id="test">hello!</div> and not in: <div id="test"> <p>hello!</p> </div> What is targeted and modified is the div and not the paragraph...
1 Réponse
+ 1
thats for your selector path.
you should get '#test p', then change text of that