For example, the input of Second Name is:
<input class=wpdev-validates-as-required" type="text" size"40" value="Schneider" name="secondname3" style=display:none;">
But I have two forms with this field Second name, which have diferent input names.
<input class=wpdev-validates-as-required" type="text" size"40" value="Smith" name="secondname4" style=display:none;">
Is there a general way to dynamically get the name instead of enter the name of the input in the code?
As you can see below, i had to add the name (secondname4) of the input.
if(bk_af_reg.test(bk_af_element.name) != false) { if (bk_af_element.value == "" ) { jWPDev(".wpdev-validates- as-required").filter([name^=secondname4]").css({"display":"none"}); bk_af_element.value = "'.$Sname.'"; jWPDev(".secondname4").append("'.$Sname.'"); } }
Thanks