i have this form that starts with 1 select DISABLED and 4 options i need a jquery that does this:
if OPTION #1 (on click) check if other options are selected and RESET (erase values and uncheck boxes)
if OPTION #2 (on click) ACTIVATE select menu and check if other options are selected and RESET (erase values and uncheck boxes)
if OPTION #3 (on click) check if other options are selected and RESET (erase values and uncheck boxes)
if OPTION #4 (on keyup) ACTIVATE select menu RESET and DISABLE other options
<!DOCTYPE html>
<html>
<script type="text/javascript">
$(document).ready(function()
{
});
</script>
<body>
<select name="menus" id="menus" style="width:500px; height:200px" size="3" disabled="disabled">
<option value="">Test#1</option>
<option value="">Test#2</option>
</select>
<div>
Option #1 <input name="op1" type="checkbox" value="">
</div>
<div>
Option #2 <input name="op2" type="checkbox" value="">
</div>
<div>
Option #3 <input name="op3" type="checkbox" value="">
</div>
<div>
Option #4 <input name="" type="text">
</div>
</body>
</html>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…