ajax - Jquery inputmask submit "null" text when textbox is blank/empty -
i using jquery.inputmask.js in project
$("input[type=text].integral").inputmask({ alias: "numeric", groupseparator: ",", autogroup: !0, clearmaskonlostfocus: !1, autounmask: true, removemaskonsubmit: true });
it works fine when displaying or editing
remove groupseparator when submit values.
ex
if textbox has 1,000.10 value submit 1000.10 server.
but when remove value textbox submit value "null".
want submit "" server. there option or event remove.
i tried onunmask , oncleared event gives "" on console log or alert @ client side.
submit "null" server.
in latest version there option called "nullable" sends empty string instead of null:
nullable return nothing when user hasn't entered anything. default: true
Comments
Post a Comment