gajendra kumar gajendra kumar - 1 year ago 77
Javascript Question

Not able to capture focus on desired element by js .focus()

When i call

it doesn't give any error message but practically not working. When i try to get
it still returning

Below is my console result:

enter image description here

Answer Source

You are calling .focus for #IncomeExpense_wrapper and that is <div> and div does not have focus event, only input elements does.

Can't help further, because you provide no info on what focusing on div must do.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download