jqueryで文字列の配列を分割する方法。例:
var input='a,b,c,d,e,f,g'
//i want to split in in array.
//check the condition that if input of elements > 3.
//then i need to remove the elements in array. then show the array like ex: output= 'a,b,c'
私は初めてなjQuery
ので、これを実装するための jquery 関数をいくつか提案してください。