JQuery selector [name^="value"] which starts with an string followed by a variable is not working -


A feature starts with the selector [name = "value"] is not working

  $ ('[id = "editMe_" +' id ']'). CSS ("Display", "None");  

Here 'editMe_' is a string and 'id' is a variable.

Thanks in advance.

You have not handled the quote correctly: use

  $ ('[Id ^ =' editMe_ '+ id +'] '). CSS ("display", "none");  

also . You can use instead of .css (


Comments