Javascript, and radio buttons -
ok here deal. have survey putting on 60 questions. want create them mandatory. need know if grouping has value, don't care is.
here have, giving me first value.
<function checkfield(myfieldname, mytext){ var x=document.getelementbyid(myfieldname).value; window.alert(myfieldname + "1: " +x);
. . .. . .
ok returns first value of 5. not matter select. need know if selected if not want mark question different color user knows go , reply question.
you can seek html5 required
:
<label><input type="radio" name="option" required /> alternative 1</label> <label><input type="radio" name="option" /> alternative 2</label>
you can utilize on 1 radio (per each name), or on of them (see html5: how utilize "required" attribute in input field type="radio").
radio-button
No comments:
Post a Comment