Jquery - Select an input element by dynamic id

by rajesh 2014-05-13 19:51:41

The simplest way to select an element in jquery which has the id based on a js variable is
$("#"+variablename).css("background-color","blue");
1142
like
0
dislike
0
mail
flag

You must LOGIN to add comments