jQuery: Binding multiple event handlers to events
Click the flower...
The jQuery Code START
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(function() {
$('#target')
.bind('click',function(event) {
alert('Hello!');
})
.bind('click',function(event) {
alert('Hello again!');
})
.bind('click',function(event) {
alert('Hello yet again!');
});
});
</script>
<style type="text/css">
.code { color: red; }
.back { background-color: yellow; }
</style>
</head>
<body>
<h1>jQuery: Binding multiple event handlers to events</h1>
<h1>Click the flower...</h1>
<img id="target" src="Image1.jpg"/>