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
Try this
jQuery(document).ready(function($) { var lines = ('this is for testing How are you').split(""); jQuery.each(lines, function() { alert(this); }); });
Demo