Double alert from one alert()
Hello, all,
I've got a weird glitch that I can't quite track down. Here is some pseudo-code:
<select id="status_A"><option value="0">Unverified</option><option value="1">Verified</option><option value="2">Unsubscribed</option></select>
<select id="status_B"><option value="0">Unverified</option><option value="1">Verified</option><option value="2">Unsubscribed</option></select>
<select id="status_C"><option value="0">Unverified</option><option value="1">Verified</option><option value="2">Unsubscribed</option></select>
...
<script src="/path/to/jquery/jquery.min.js"></script>
<script>
$('[id^="status_"]').on('change',function(){
var $thisVal = $(this).val();
alert($thisVal);
});
</script>
When a select is changed, for example the first select is changed from the default Unverified to Verified, I will get an alert that displays "1", and then when I close that alert another alert (with no value displayed) pops up. Any ideas what might be causing this?
V/r,
^ _ ^
