I have looked and tried several methods from the link below but my selection continually does not submit onchange.
Javascript select onchange='this.form.submit()'
My source can be see here:
http://xeroharm.com.au/settings/users/test.html
The code below I have used works in some places throughout my site but not others. I have copied the source code and made a test so you can see something that might be preventing this from submitting on change.
the select code is like so:
<select id="mytrigger" name="EmployeeChange" data-placeholder="Change Employee..." class="chosen-select" tabindex="2" onchange="myFunction()">
<option value=""></option>
<?php
$result = mysqli_query($conn,"SELECT * FROM Employee ORDER BY FirstName;");
while($row = mysqli_fetch_array($result)){
echo "<option value='".$row['Employee_ID']."'>".$row['FirstName']." ".$row['LastName']."</option>";
}
?>
</select>
Any assistance would be greatly appreciated.