.html() function on class selector ($('.class').html()) applies only to the first element that matches it. I’d like to get a value of all elements with class .class.
.html() function on class selector ( $(‘.class’).html() ) applies only to the first element
Share
You are selection all elements with class
.classbut to gather all html content you need to walk trough all of them:search items by containig text inside of it:
Code: http://jsfiddle.net/CC2rL/1/