I want to check if a hidden field has a value or not and the id of the hidden field contains a pound sign, when I use jquery to get its value it throws because the pound sign is not allowed only one time at first before the id. Do I have to convert the pound sign to ASCII code or is there any other way to deal with it?
can anybody help?
var v = $('#ddlSort1#').val();
Try this:
OR