jquery ui - How to get the first element value of the splitted array -


how first element value of splitted array

var supplierpofileselection = $("[id$='_selectedtabidshiddenfield']").val(); var arr = supplierpofileselection.split(';'); var arrfirst = arr.first(); alert (arrfirst); 

list random.

you need use index access element of array.

change

var arrfirst = arr.first(); 

to

var arrfirst = arr[0]; 

Comments