事件的绑定(单个、多个)
---------------------------------------------------------------------------
绑定单个事件
<script type="text/javascript">
$(function(){
$("input[name=event_1]").bind("click",function(){
$("p").css("background-color","#F30");
});
});
</script>
----------------------------------------------------------------------------
绑定多个事件
<script type="text/javascript">
$(function(){
$("input[name=event_1]").bind({
mouseover:function(){
$("ul").css("display","none");
},
mouseout:function(){
$("ul").css("display","block");
},
});
});
</script>
-----------------------------------------------------------------------------