Getting "Expected ',' or '{' but found '[selector]'" error.
- by sadmicrowave
Getting "Expected ',' or '{' but found '#44559'" error. My code looks like this:
var valueid = $("div#center-box div#empid-textbox input").val(); //valueid=44559
if($("div#esd-names li#" + valueid).length > 0){
//DO SOMETHING;
};
I'm getting the value of what is entered into a textbox input field which in case is "44559"
can't seem to figure out why I'm getting this error.