0

Is there any way to add onblur event on a container of 2 input below ?

<tr>
   <td>
      <input id="firstName" type="text" />
   </td>

   <td>
     <input id="lastName" type="text" />
   </td>
</tr>

enter image description here

manhnt
  • 643
  • 1
  • 11
  • 24

1 Answers1

2

you might not be able to have an onblur for a div if you happen to put that as a container for your inputs grouped together.

this might help

How to get div onblur event to execute a javascript function?

Community
  • 1
  • 1
Sid
  • 178
  • 2
  • 16