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

All 3 Replies

Member Avatar for diafol

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 for diafol

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.