I have 2 input tags:
<input type="text" class="mainText" id="input">
<input type="text" class="mainText">
I need to set id to the input tag that don't have id, may be with jQuery like:
if(input tag has no id){
$(".mainText").attr("id", "someInput");
}
How could I find this non id input?