Prototype or JQuery change the value of a hidden field?
- by Nick Faraday
I'm having some trouble with prototype changing the value of a hidden field.
Function:
function remove_fields (link) {
$(link).next('input[type=hidden]').value = '';
$(link).up(".open_hours").hide();
}
If I comment out the $(link).next('input[type=hidden]').value = ''; the hide function works. Trying to set the value gives me an error: …