javascript - JQuery $(this).attr("name") vs this.name -
what main different between
$(this).attr("name") and
this.name and technical explanation?
the first gets attribute value jquery object formed dom element. second gets property directly dom element, , therefore quicker. should use native properties possible.
Comments
Post a Comment