2 Replies Latest reply on Dec 5, 2011 12:47 PM by __gravija__

    Split textfield value in 2 parts and put each part in a var

    __gravija__

      I have a textfield, that has a text value: France Paris. Now I need to know how I can take that string, cut it in 2 parts (France and Paris) and put those two parts in a var. So:

       

      <textfield id="field1" text="France Paris">

       

      and somewhere i should get

       

      var1 = France;

      var2 = Paris;

       

      I know there is a split string command, but i'm not familiar with any of this stuff.

       

      Thanks for you help!