I have a page which has some divs. Each div id starts with the word divfor and have a suffix after that. Like divforjohn, divforjim ... etc. These suffixes come from database.
My problem is when i try to load something in that div it creates problem if it have the @ sign in it. So, if I do something like below:
$("#divfor"+divsuffix).html('some text goes here.');
then it doesnot make any problem if the divname is divforjohn
but doesnot work if the divname is divforjohn@x
.
So, how can I address a div that has @sign in its id? or its a limitation/bug of jquery?
Thx.