Hi Abu,
I tried to validate the text field to avoid alphabets, only allow to enter numeric and double values. How to do this?
Hope to get the reply as soon as possible.
Thank you.
5 Answers
Working demo here:
https://gist.github.com/gridphp/3c214fbe321b02178e6db57b37c949ec#file-js-validation-php-L99
Screenshot: http://prntscr.com/bwhls6
Hi Abu,
Thanks for your response. When submit form Its working, but i need to use it on text field oninput or onchange.
Thank you,
This is doable with onblur event.
$col = array();
$col["title"] = "Total";
..
$col["editoptions"] = array("onblur"=>"validate_onblur(this)");
$cols[] = $col;
and
function validate_onblur(o) { }
Source: http://www.phpgrid.org/demo/demos/editing/js-validation.phps
Your Answer