Jquery trim not working. I wrote the following command to remove white space. Whats wrong in it?
var str = $('#txtbox').val();
str = jquery.trim(str);
$('#txtbox').val(str);
Jquery trim not working. I wrote the following command to remove white space. Whats wrong in it?
var str = $('#txtbox').val();
str = jquery.trim(str);
$('#txtbox').val(str);
see the below method it should work print str...in console or alert and check
http://api.jquery.com/jQuery.trim/