Hello,
I am using JQuery onclick submit event like this
<script type="text/javascript">
$(function(){
$('#button').click(function(){
$('#form').submit();
return false;
});
});
</script>
I want to do it with mootools.
Thanks
Hello,
I am using JQuery onclick submit event like this
<script type="text/javascript">
$(function(){
$('#button').click(function(){
$('#form').submit();
return false;
});
});
</script>
I want to do it with mootools.
Thanks
Solved
Using mootools addEvent
$('button').addEvent('click', function(){
$('form').submit();
});
If #button
is a submit, you can always do the following:
$('form').addEvents({
submit: function(){
this.submit();
}
});