d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Check Input For A String
Add Reply New Topic New Poll
Member
Posts: 134
Joined: Nov 1 2017
Gold: Locked
Nov 20 2017 02:07pm
I want to be a able to enter a string into a text box and have JS take that text to look for a "//" and do a split, then fill two other textboxes.. in example.

GameString: "game1//1"

take that and populate

Game: "game1"
pass: "1"
Member
Posts: 3,028
Joined: Mar 23 2016
Gold: 7,568.50
Member
Posts: 134
Joined: Nov 1 2017
Gold: Locked
Nov 20 2017 03:18pm
Quote (annexusquam @ Nov 20 2017 04:55pm)


Thanks, I'll try it
Member
Posts: 134
Joined: Nov 1 2017
Gold: Locked
Nov 20 2017 04:08pm
Quote (annexusquam @ Nov 20 2017 04:55pm)


Thanks, it did work on an HTML page, I am trying to get it running on a php so I am guessing that I need to continue plugging
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll