I have a menu that is to change the content of the page based on what was selected. Here is the site (it has no functionality yet, and I need to get this working, before I can even touch anything else: http://dinotator.biokdd.org/ResearchProject/tableViewer.php )
I have tried what this person did: HTML <select> JQuery .change not working , and have even tried to move the function to all different places in the document (except the head of the document, because it is not an option, because of the fact that the head is in a file called header.php, which gets included to every file that needs it). My menu's HTML looks like this:
<select id="menu">
<option name="blankOption"></option>
<option name="annotation_flags" id="annotation_flags" value="Annotation Flags">Annotation Flags</option>
<option name="character_trait_annotations" id="character_trait_annotations" value="Character Trait Annotations">Character Trait Annotations</option>
<option name="character_traits" id="character_traits" value="Character Traits">Character Traits</option>
<option name="characters" id="characters" value="Characters">Characters</option>
<option name="franchises" id="franchises" value="Franchises">Franchises</option>
<option name="users" id="users" value="Users">Users</option>
</select>
I try to, in various places (first, right after it, and now, right before it), use this:
$('#menu').change(
function()
{
var tableTitle = $(this).val();
alert(tableTitle);
}
);
For some reason, whenever I click any of the options, nothing happens!! What am I doing wrong!?!?