I need to count the length of an Ajax response done in jQuery. The response is in JSON format and only contains a single string. I get the value but have no idea how to coun
Do an if condition then convert it to string first, then count the length as needed.
success: function(response) { if(response){ alert( (response + '').length ); } }