2
我的代码:jQuery选择不web.py内正常工作
<head>
<script src="/static/jquery-1.7.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
var value = jQuery('#continue').attr('value');
alert(value);
</script>
<title>$pageTitle</title>
</head>
<body>
<div class="notifier">
<form>
<button>Cancel</button>
<button id="continue" value="next">Continue</button>
</form>
</div>
</body>
我希望我有next
,而是我在警报得到undefined
消息。即使我尝试从其他标签获得html()
,也会发生这种情况。
或在'
'的末尾加上'相关问题