Hiding Fields with Javascript open within an Element

Hey there,

I have a form which consists of a number of questions, answered with a radio button (either pass or fail).

If the user selects Fail they are then able to type into another element the reason for the fail.

I have been using Javascript within the radio button element to hide the failure description element from the form 'on load', and the showing the element when the user clicks on the fail radio button.

All works perfects, except when the form first loads, all the failure description elements are shown, they then disappear after a small amount of time.

Is there a better way to do this than I am currently doing it?

I did try the 'hidden' option for an element, thinking that the javascript might show it again, however it doesn't and now wondering if there is a better way, so that all the failure description fields aren't show at all when the form first loads.

Thanks.
 
Nope, that's just how it works at the moment.

On my To Do list is a way to not show anything (just a loading spinner) until all load JS has run. Haven't had time to do that yet.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top