
Custom JS events on form fields
- Single Page
Posted 14 September 2012 - 17:08 PM
I am new to using this amazing auto crud generator. It works amazingly. I want to have something done on keypress event in the addition/updation forms which are auto-generated.
Please guide.
Thanks.
Posted 14 September 2012 - 17:34 PM
Posted 16 September 2012 - 05:46 AM
Posted 16 September 2012 - 18:50 PM
So inside the view that will be print the grid you put this code. Alter the #field-name id to the field id you want.
<script type="text/javascript">
$("#field-name").keypress(function() {
alert("Handler for .keypress() called.");
});
</script>