I've been trying  to figure out why when I click the button nothing
happens...Can someone shed me some light on this example?

<html>

<head>

<script src="jquery-1.2.6.min.js"></script>             
<script >
        function init(){
            alert('one');
            alert('two');
        };

        $(init);

        $("#lstRace").change(
           alert('three');
        );

        $("#clickMe").click(
           alert('four');
        );

</script>
</head>
<body>
Hello

<select id="lstRace" name="lstRace" >

<option value="1">Test</option>
<option value="2"/>Test3</option>
<option value="3"/>Other, please specify</option>
</select>


<input type="test" id="raceOtherDiv" name="other" />
<input type="button" id="clickMe" >click me </input>
</body>
</html
-- 
View this message in context: 
http://www.nabble.com/Why-doesn%27t-code-execute-when-Drop-Down-is-changed-or-Button-clicked.-tp20654372s27240p20654372.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to