Tom Knowlton
asked on
Event fires first time only?
In the code below, the alert message fires the very first time I pick something from the drop down list.
But after that, the alert message does not fire when I choose something from the same drop down.
But after that, the alert message does not fire when I choose something from the same drop down.
$(document).ready(function ()
{
var loc = window.location.href.toUpperCase();
if (loc.indexOf("COURSESEARCH") != -1)
{
$("select").change(function ()
{
$("select option:selected").each(function ()
{
alert($(this).text());
});
});
}
});
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Are you using any other Javascript framework?
ASKER
I don't think so...
Firebug report nothing ???
ASKER
I tried looking for errors in the Firebug console, but none were reported
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thx
ASKER
I need help tracking down where the javascript might be broken.
Let me put together a test page of my own and see if I can narrow this down.