$(".number_changer").attr("id")="two";
I am trying to grab the class number_changer and set the id on it to "two"
invalid assignment left-hand side
$(".number_changer").attr("id")="two";
$(".number_changer").attr("id")="two";
I am trying to grab the class number_changer and set the id on it to "two"
invalid assignment left-hand side
$(".number_changer").attr("id")="two";
$(".number_changer").attr("id", "two");
More here:
http://api.jquery.com/attr/