How to use Split with jQuery?

Posted by Matt on Stack Overflow See other posts from Stack Overflow or by Matt
Published on 2010-03-31T19:16:11Z Indexed on 2010/03/31 19:23 UTC
Read the original article Hit count: 166

Filed under:
|

I need to break apart a string that always looks like this: something -- something_else. I need to put "something_else" in another input field. Currently, this string example is being added to an HTML table row on the fly like this:

tRow.append($('<td>').text($('[id$=txtEntry2]').val()));

I figure "split" is the way to go but there is very little documentation that I can find yet.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about split