I am trimming all textboxes and textareas on submit
. It does not work for all view pages.
I have taken simple html inputs + kendo DropDownList + kendo AutoComplete
in my form.
Below is my submit method which doesn't work, when there are Kendo UI control
on my form.
$('input[type="submit"]').click(function () {
$('input[type=text], textarea').each(function () {
if($(this).val()!=''){
$(this).val($.trim($(this).val())); //Exception in chrome: paused on exception typeerror. Msg: undefined in not function.
}
});
});
I don't know what's wrong. I found this issue specific to chrome browser
.