Hi Abu,
I'm using the phpgrid licenced vesion , and we need to define events (like keyup or keypress) for certain fields in the add and edit form, but to get it working we need to define the events in jquery document ready:
<script>
Jquery(document).ready(function(){
jQuery("input[name=suma].editable").keyup(function() {sumtotal();})
});
</script>
and it is not working (perhaps because it is already defined to show the grid). At this moment we are defining the javascript function on edit options ($col["editoptions"] = array(“onchange”=>”sumtotal();”) ), but it only works when you leave the field.
Thanks in advance.
Jorge
2 Answers
You can replace onchange to onkeyup.
$col["editoptions"] = array(“onkeyup”=>”sumtotal();”)
Your Answer