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>
フォームを送信する前に、ポップアップがユーザーに「はい」と「いいえ」の回答を警告するように、確認をどこに置くことができますか?