try

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



bkbonner wrote:
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

Reply via email to