Selecting elements with special characters in the ID

Instead of trying for ID using #, try this to match attribute like this,

$("[id=ID]')

or

$('[id='+ID+']')

so instead of

bidID = "#" + idVal + "bid"

you can try

bidID = "[id=" + idVal + "bid]"

Leave a Comment