Trimming issue in IE
8 .trim().
Using .trim() to trim the value of the text does not works
properly in I.E 8
var productName =$("#hdnProdName").val().trim();
for the above code we get an error message
"Message:
Object doesn't support this property or method"
var productName = $.trim($("#hdnProdName").val());
This works in all browsers well.
No comments:
Post a Comment