Home › Forums › CSS › Javascript – Assign attribute › Re: Javascript – Assign attribute
January 7, 2011 at 4:49 pm
#67212
Participant
Yeah, jQuery is pretty convenient for chaining things together.
A quick question though. if bzmillerboy simply wanted to set the attribute to 2 why go:
.attr("size", function() { return '2'; })
and simply not:
.attr("size", "2"})