how to split a value in jquery code example
Example 1: how to get the all input element id value using jquery
BY LOVE
This function will give you all the ID values of input element
$('input').each(function (i, item)
{
alert(item.id);
});
Example 2: in javascript how to split string
var str = 'It iS a 5r&e@@t Day.'
var array = str.split(" ");
print(array);
var str = 'It iS a 5r&e@@t Day.'
var array = str.split(" ",2);
print(array);