html - Javascript: Enabled / Disable radio on selected with javascript -
I want to make this form dynamic with prototype. I mean, radio should be disabled, but when you choose one, with JS, they should enable them, so if you choose another, 1 should be disabled.
This is my html, but I do not know where to start with this work from JS, thanks
& Lt; Input disabled type = "file" id = "uploadcv" name = "uploadcv" /> & Lt; / Div & gt; & Lt; Div id = "pasted cv" & gt; & Lt; Input type = "radio" id = "pastedCvSelector" name = "uploadFormSelector" /> & Lt; Textarea disabled id = "pastedCv" name = "pasteed cv" rows = "8" cols = "40" onclick = "this.value = ''" & gt; Paste your CV & lt; / Textarea & gt; & Lt; / Div & gt; & Lt; Input type = "submit" value = "send'em!" / & Gt; & Lt; / Fieldset & gt; & Lt; / Form & gt; I think your request to answer prototype bias is your request. You can fix this without a library.
& lt; Input type = "radio" id = "pastedCvSelector" name = "uploadFormSelector" onclick = "document.getElementById ('pastedCv'). Disabled = false; document.getElementById ('uploadCv') = disabled disabled." & Gt; & Lt; Textarea disabled id = "pastedCv" name = "pasteed cv" rows = "8" cols = "40" onclick = "this.value = ''" & gt; Paste your CV & lt; / Textarea & gt;
Updated (ren)
Comments
Post a Comment