Ich habe paar der Auswahlbox und ich möchte wissen, welche Auswahlbox ausgelöst wird.Wählen Sie den Namen der Box in jquery
Html-Code:
<form id="property-filters" method="post">
<select name="sel1">
<option value="1">1</option>
<option value="2">2</option>
</select>
<select name="sel2">
<option value="3">3</option>
<option value="4">4</option>
</select>
</form>
JQuery-Code:
$(document).on('change', '#property-filters input, #property-filters select', function()
{
//Get the name of the select box.
}
Jede Hilfe sehr geschätzt wird. Danke im Voraus.
Check 'this.name' –