in onblur i called two different events; but its not working. First event only working.
How to do?
either in onBlur() or onFocus()
Example:
onblur="a();b();"

Recommended Answers

Attach an event listener instead of inline js.

losing focus supports bubbling (i.e. if will fire if a parent loses focus too). blur is stuck to the control specified.

Are you using a lib such as jQuery or just using vanilla js?

Jump to Post

All 3 Replies

Member Avatar

Attach an event listener instead of inline js.

losing focus supports bubbling (i.e. if will fire if a parent loses focus too). blur is stuck to the control specified.

Are you using a lib such as jQuery or just using vanilla js?

No i am not using a lib such as jQuery or just using vanilla js.I am new to this one

Member Avatar

You're not supplying any code. Can't help you unless you show you're code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.