Showing posts with label .val(). Show all posts
Showing posts with label .val(). Show all posts

Tuesday, 4 December 2012

jQuery: get and set information for DOM elements

   


jQuery is a great tool when we need to manipulate elements in our web page.
Today I would like to focus your attention on some useful methods that allow us to get or set information of DOM elements.
We are talking about:
1) .text()
2) .html()
3) .val()
4) .attr()

Let's see them one by one.