[Kss-devel] Trigger onchange event on an input programattically
Hedley Roos
hedley at upfrontsystems.co.za
Wed Mar 7 13:57:29 CET 2007
I have a case where using KSS would be overengineering.
Basically I have on a form
<input name="foo" id="bar" class="someclass" onChange="alert('hello');">
<a onClick="document.getElementById('bar').onchange(); return false;"
href="#">Test</a>
and the KSS reacts to a change event for the class someclass.
Clicking Test fires the alert 'hello', but the event is not picked up by
azax.
Manually changing the contents of input foo results in the alert 'hello'
and it is picked up by azax.
So, how do I get it to work when clicking Test?
Hedley
More information about the Kss-devel
mailing list