I tried a couple of solutions from previous questions, but no luck. Hope someone can help me.
I have a form section where fields are dynamically created with a specific class:
<td><input class="user_field" type="text" name="1[user_fname]"/></td> <td><input class="user_field" type="text" name="1[user_lname]"/></td> <td><input class="user_field phone" type="text" name="1[user_mobile]"/></td> <td><input class="user_field" type="text" name="1[user_email]"/></td> <td> </td>
When blurring, I need to check for empty boxes and tried:
$('.user_field').blur(function(){
and get "0"
source share