I have a select form:
<form id="form" name="nameForm">
<select id="selectId" onchange="loadAjax('url.php');return false;">
<option>One</option
<option>Two</option>
</select>
</form>
I want that when the user changes the selected option, it loads the ajax function with the value in the url (trough GET).
So I tried several things and this was my last try:
onchange="
var e = document.getElementById('form');
var strSel = e.form.selectId.value;
loadAjax('url.php?v='+strSel);
return false;
">
Not really correct. Does someone know how to do this correctly ?