Just wandering, will it be possible to add class into html element with partially id information with jquery.
Example:
I have the following html code
<e id="1-1">1.1</e>
<e id="1-2">1.2</e>
<e id="2-1">2.1</e>
<e id="2-2">2.2</e>
Currently I'm using the following code to add in the class:
$("e[id=1-1]").addClass("keyWord");
Would it be possible to pass in the partially id like 1 and it will add the class for element with id 1-1 and 1-2?