Item in object has two value need the second value jquery -
i have object has 2 value "384-768" how can second value of items. if item has 2 value highest 1 if 1 return 1 only. how object?
you can second value using split (it splits strings array separating string passed argument)
"384-768".split('-')[1] and find in loop maximal element (after converting integer parseint)
Comments
Post a Comment