Closed yurikus closed 3 years ago
What version are you using? The latest version 3.2.0
already implements what you need 😄 (see Changelog).
customTypes: {
masked: function (str, el) {
// str is the string value
// el is the DOM element
// $(el) is the jQuery element
}
}
Interesting, this is in ASP Net Core project with packages managed by libman. It uses this https://cdnjs.com/libraries/jquery.serializeJSON
EDIT: jsdelivr seems to have v3.2: https://www.jsdelivr.com/package/npm/jquery-serializejson
Resolved, closing
My bad. I realized I didn't properly release the last version v3.2.0. Making the tag and release now. Thanks!
My use case: I have a text box managed by
jquery.mask
plugin. I would likeserializeJSON()
to return clean value. This requires a reference to the element.Cheers!
My workaround: