我正在尝试调用我的 javascript 函数,但它不起作用..请帮帮我
javascript代码:
<script type="text/javascript">
$(document).ready(function(){
function confirm(){
alert('hello world');
}
});
</script>
文本框代码:
<div class="full-filed">
<h3>Confirm Password:</h3>
</div>
<g:passwordField name="confirm" value="" class="loginTxtBox" placeholder="Password" onClick="confirm();"/>