is there proceed jquery's serialize form fields trim value fields?
i have form uses jquery quarrel an ajax post serializes form sent up. formula looks this:
var form = $("form");
var movement = form.attr("action");
var serializedform = form.serialize();
$.post(action, serializedform, function(data)
{
...
});
the problem here domain trailing white space, serialize duty spin those spaces and (+) signs, should stripped.
is there proceed fields embellished without doing following:
$("#name").val( jquery.trim( $("#name") ) );
Comments
Post a Comment