I have a html/php script where there is a Select I want to be "disabled" if checkbox is not checked.
This is the script:
<input type="checkbox" name="stOne" id="stOne" value="1"/> <select class="input" name="selectOne" id="selectOne"> <?php $check_sql = mysql_query("SELECT * FROM DBtable"); while ($check_row = mysql_fetch_assoc($check_sql)) { $id = $check_row['id']; $st = $check_row['style']; echo "<option value='" . $st . "'>" . $st . "</option>"; } ?> </select> I found many scripts here on stack overflow with a solution that didn't work in my code.
Can someone help me with this?
Is it possible to do this NOT with jQuery?