Hy,
I have the following situation. I have a form where I read from database values and put them in an select like this
HTML code :
<select id="model" name="model">
<option value="0">choose...</option>
</select>
Javascript code :
var nrcrt = $("input#type option:selected").attr('value');
$.post("select_model.php", {nrcrt:nrcrt}, function(data){
$("select#model").removeAttr("disabled");
$("select#model").html(data);
});
in nrcrt I have a value from a previous select which I use in select_model.php to make the query to mysql.
The question is: can anyone help me transform this from a select to a checkbox list?
Thank you.