How to split a string using JQuery?

How to split a string using JQuery?

Hi all,

New here, so hello.

I'm using a system called K2 and use a Web service to return an address string is this format:

123 K2 Avenue,K2Town,K2County,K21456

This string is in a Textbox, so I need to know how I can use Jquery to split this string in separate Lines.

I have 4 separate empty textboxes, so I can use separate Jquery to split the string to each line (based on comma count)

But I don't know any Jquery, would anyone kindly create the first Jquery to split the string to show just the "K2County" part using JQuery? From there I should be able to work out how to show the other parts in the other text boxes.

Thanks