How do I get the TextBox Value since JavaScript? (Resolved)

Get help using Construct 2

Post » Mon Apr 18, 2016 12:25 am

Hey guys, i wanna get the TextBox Value since Js i tried it but no work:
var mystring= document.getElementById('MyIdTextBox').value;
and check with:
alert(mystring);
I specify in the construct2 the id as MyIdTextBox.
Please help :roll:
Last edited by odro on Mon Apr 18, 2016 1:50 am, edited 1 time in total.
B
3
Posts: 2
Reputation: 179

Post » Mon Apr 18, 2016 12:46 am

it's working for me...
Image

Code: Select all
"var mystring=document.getElementById('MyIdTextBox').value;alert(mystring);"


Image
B
66
S
24
G
7
Posts: 1,515
Reputation: 11,041

Post » Mon Apr 18, 2016 1:49 am

ohh man soo cool, I can create external functions and then call with this, thank you. :D
B
3
Posts: 2
Reputation: 179


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], jbr190, plinkie, TRMG and 34 guests