kunal kunal - 1 year ago 108
jQuery Question

SyntaxError: missing ) after argument list var x = $("input[name="+value+'[]'"]")

I am getting error on this. i don't know what happen here.

enter code here
var value= $(".getvalue").val();
var x = $("input[name="+value+'[]'"]")
alert ("Please fill all the fileds");



Answer Source

You have problem with quotes

   var x = $("input[name='" + value + "[]']")
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download