I\'ve got a jQuery function that attempts to change the id, name and class attribute values of an element.
id
name
class
The id
Instead of chaining you can pass into .attr()
.attr()
{ "id" : "sel" + rowIndex , "name" : "sel" + rowIndex }
A lot of jQuery functions accept objects like above when you have to pass in (string comma string) data like .css() and .animate()
.css()
.animate()