Is it possible to use onchange event in a <div>?
onchange
<div>
Because my <div> changes its text inside.
Can I do something like this?
<div id="name" onchange="calculateTotal();"></div>
No; the onchange attribute is only applicable to form field elements (input, select, textarea, etc).
input
select
textarea
1.4m articles
1.4m replys
5 comments
57.0k users