I have an html input text like this :
<input type="text" name="address[5][firstname]">
i want to check if the value is exist only by input which contain a specific string like firstname. Here's what i've done so far:
if($( "input[name*='[firstname]']" ).length < 1){
console.log('in');
}
if($( "input[name*='[firstname]']" ).length < 1){
console.log('in');
}