In my code I split a string based on _ and grab the second item in the array.
_
var element = $(this).attr('class'); var field = element.split('_')[1];
good_luck
luck
var icons = $(".IT_Icon").text().trim().split(",");
I am wondering how to use jQuery.Split() with an "OR" - i.e. like example@example.com, example2@example.com,example3@example.com So it returns like
jQuery.Split()
example@example.com, example2@example.com,example3@example.com
example@example.com example2@example.com example3@example.com
",<space>"
","
if ($(".productpage .description").html() != null) { var textToHide = $('.productpage .description').html().split('<br class="breakHere">')[1]; var visibleText = $('.productpage .description').html().split('<br class="breakHere">')[0]; }
In Javascript, I am getting a string like I have a string exactly like H01=13 H02=12 H03=43 H04=56..... ? I want to split the string and give it to the different textboxes ...
H01=13 H02=12 H03=43 H04=56.....