filmov
tv
#12 jQuery Get and Set Content Methods | text, html, val, attr Methods

Показать описание
In this video, we are going to learn jQuery GET and SET Content methods like text, html, val and attr.
These GET and SET methods can change and manipulate HTML elements and attributes.
text Method :- Get or Set only the text part of the element. Here the HTML tags will not get or set along with text.
The example in video shows Get and Set text Method.
html Method :- Get or Set the text part along with HTML tags of the element.
The example in video shows Get and Set html Method.
attr Method :- attr method is used to get the attribute values.
The example in video shows working of attr Method.
val Method :- Set or Get the value of form fields
The example in video shows working of val Method.
Join this channel to get access to perks:
These GET and SET methods can change and manipulate HTML elements and attributes.
text Method :- Get or Set only the text part of the element. Here the HTML tags will not get or set along with text.
The example in video shows Get and Set text Method.
html Method :- Get or Set the text part along with HTML tags of the element.
The example in video shows Get and Set html Method.
attr Method :- attr method is used to get the attribute values.
The example in video shows working of attr Method.
val Method :- Set or Get the value of form fields
The example in video shows working of val Method.
Join this channel to get access to perks: