我可以在哪里放置mootools 验证工具的确认弹出窗口
确认脚本:
if (confirm('您查看过信息吗?')) { }
mootools 脚本:
<script type="text/javascript">
window.addEvent('domready', function(){
// The elements used.
var myForm = document.id('leadForm'),
myResult = document.id('myResult');
// Labels over the inputs.
myForm.getElements('[type=text], textarea, select' ).each(function(el){
new OverText(el);
});
// Validation.
new Form.Validator.Inline(myForm);
// Ajax (integrates with the validator).
new Form.Request(leadForm, myResult, {
requestOptions: {
'spinnerTarget': myForm
},
extraData: { // This is just to make this example work.
'html': 'Form sent.'
}
});
});
</script>
我可以在哪里进行确认,以便在发送表单之前弹出窗口会提醒用户回答是或否?