How can I trigger the jQuery change event every time even when user selects the same value? I need a refresh effect e.g if a user select Lawyer and it alert hello
then again user select Lawyer from the dropdown and it should alert hello
. How can I achieve it? Following is the code.
jQuery
function filterPullDown () {
alert('hello');
}
$(".businessTypePullDown").change(filterPullDown);
HTML
<select class="businessTypePullDown">
<option value="" disabled selected>Business Type</option>
<option value="1">General</option>
<option value="2">Lawyer</option>
<option value="3">Software Development</option>
<option value="4">Auto-repair</option>
</select>
$(".businessTypePullDown").click(function(){// perform required operation});