Changing HTML elements with jquery | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
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.

4th Aug 2017, 2:01 PM
Peter
Peter - avatar
1 Respuesta
+ 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..
4th Aug 2017, 2:20 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar