troubles with input, type, hidden, onhange and javascript

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
tores
Forum Contributor
Posts: 120
Joined: Fri Jun 18, 2004 3:04 am

troubles with input, type, hidden, onhange and javascript

Post by tores »

Hi


I have this hidden input form-field which I assign values to. When the inputs value changes I execute an alert() via onchange... The problem is that nothing happens when I change its value. The value changes alright, but the alert() isn't executed. No errormsg is generated either.
Does anyone have an idea as to what may be wrong?

regards tores
tores
Forum Contributor
Posts: 120
Joined: Fri Jun 18, 2004 3:04 am

Post by tores »

It seems that onchange on hidden input fields doens't work as expected, at least not in firefox. E.g with a text input onchange will kick in when the field is blured... Tried calling blur on the hidden field, but that didn't work. In the end I settled with a solution without the use of onchange.
Post Reply