ajax按钮单击不正确

I am trying ajax for the first time. I have a button in php

<input type ="button" name = "save" value = "save"/>

I have the following code

<script language = "javascript" type = "text/javascript" src = "jquery.js">
$(document).ready(function(){$("#save").click(function(){alert("1");})})
</script>

I am just trying to make sure that the alert will be displayed before I write any complex code for implementing ajax call. But the alert is not displayed. What am I missing? Can anyone please point out. Thanks in advance Pre

查看全部
weixin_33712987
weixin_33712987
2011/07/20 12:06
  • php
  • ajax
  • 点赞
  • 收藏
  • 回答
    私信

3个回复