Share Share on Facebook Share on Twitter Pinterest Email var image = "123.jpg,234.jpg"; var name = image.split(",")[0]; 1 Siddharth Shukla Website Related Posts How to set cookies and get cookies using jquery September 29, 2021 jquery loop on Json data using $.each June 19, 2020 Change input value onclick button – pure javascript or jQuery June 17, 2020 How to get unique values from array in Jquery? February 13, 2020 Write A Comment Cancel Reply Save my name, email, and website in this browser for the next time I comment.