Answer the question
In order to leave comments, you need to log in
How to split jquery select?
I make a selection on the active menu classes, this selection is passed to the input as text. How can I insert a separator between selected items?
Now I have it displayed like this:
TransportMotortechnicsSnowmobiles
and you need it like this:
Transport -> Motorcycles -> Snowmobiles
var show = $(this).closest('.cat-picker').find('.cat-tab .active');
$(this).closest('.cat-picker').find('input.term3').val($(show).text());
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question