解决方案 »
- 刚开始学jquery,现在想实现一个效果,请大家帮忙
- 后执行的js输出的html代码仍然会自动应用之前加载的CSS样式吗?
- 得到表格中的行数
- 弱弱的问个JS基础的东西 instanceof
- 找个朋友帮我看一下,好郁闷!!!!!!!!!!!!!!!!!!!!!!!
- <script language="javascript" runat="server">这里的runat="server"是什么意思
- 如何建一个js函数,传进去是1122这样的数字,出来是对应这个目录的1.jpg,2.jpg.这样显示?
- 请问一个a onclick事件怎么写.
- 100分请求帮助!!关于表单内容……
- html帐号密码加密
- js+php多图上传问题
- jsp页面中的内容有格式,生成Excel文件之后怎么去格式?
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="http://code.jquery.com/jquery-1.11.0-beta1.js" type="text/javascript"></script>
<script>
$(document).ready(function(){
$(".radio").click(function() {
var str = window.prompt("请输入内容","password")
str += $(this).prop('value');
alert(str)
});
});
</script>
</head>
<body> <input type="radio" value="radio" class="radio" />
</body>
</html>
var str = window.prompt("请输入内容","password")
str += $(this).prop('value');
$.ajax({
url: 'url',
type: 'POST',
dataType: 'html',
data: 'str='+str,
success: function(msg){
alert( msg );
} })
});