0
Changing HTML elements with jquery
I asked this earlier but maybe I wasn't clear enough. what is the point or benefit of using things like html() or text() using jquery rather than just changing the Html file directly? e.g. if I wanted to change <p>Hello </p> to <p>HELLO!! </p> why go through the trouble of javascript, seems like a lot of extra work.
1 ответ
+ 2
there always two methods of doing things static or dynamic.. and if you provide everything directly to the site.. your website will be so predictable and static.. there comes the need of js or jQuery or other language.. to make your stuffs change in real time..