Is it possible to use onchange
event in a <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).