How can i split the string containing tag using jquery. I tried the following code but it get error in console. I am not sure how to split the strin
jQuery(document).ready(function($) { var str = 'this is for testing How are you'; var lines = str .split(''); jQuery.each(lines, function() { alert(this); }); });