☰
d2jsp
Rules
Help
Forum Gold FAQ
Live Streams
Photo Gallery
Hourly Raffle
Ladder Slasher
Log In
Register
Log In
Register
Account Recovery
Resend Validation Email
d2jsp Forums
>
Off-Topic
>
Computers & IT
>
Programming & Development
> Check Input For A String
Add Reply
New Topic
New Poll
Views: 357
Replies: 3
Track Topic
Master999
Member
Posts: 134
Joined: Nov 1 2017
Gold
:
Locked
#1
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"
annexusquam
Member
Posts: 3,028
Joined: Mar 23 2016
Gold
:
7,568.50
#2
Nov 20 2017 02:55pm
https://www.w3schools.com/code/tryit.asp?filename=FLP9B6LI2BHE
Master999
Member
Posts: 134
Joined: Nov 1 2017
Gold
:
Locked
#3
Nov 20 2017 03:18pm
Quote (annexusquam @ Nov 20 2017 04:55pm)
https://www.w3schools.com/code/tryit.asp?filename=FLP9B6LI2BHE
Thanks, I'll try it
Master999
Member
Posts: 134
Joined: Nov 1 2017
Gold
:
Locked
#4
Nov 20 2017 04:08pm
Quote (annexusquam @ Nov 20 2017 04:55pm)
https://www.w3schools.com/code/tryit.asp?filename=FLP9B6LI2BHE
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
© 2003-2024 d2jsp
Contact