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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -