When clicking a div I need to store a few data into a hidden input field the data will take the form like this
term_name:has_children:parent_id|
As more divs are clicked their will be more data
postA:1:275|postB:0:375
etc, how do i split this into an array for processing? With php i would simply do
explode ('|','string');
I would need to do this twice here once with '|' and then again with ':'
I hope my question is clear. Please let me know if it is not Thank You in Advance