Jump to content

java and html

Guest

I'm trying to find a way to insert a java variable(like string or int) into an html textbox.

if you know how to do this, please tell me!

Thank you.

Link to comment
Share on other sites

Link to post
Share on other sites

var textbox = document.getElementById("element_ID")

textbox.value = "if you know how to do this, please tell me!"

 

             ☼

ψ ︿_____︿_ψ_   

Link to comment
Share on other sites

Link to post
Share on other sites

11 minutes ago, SCHISCHKA said:

var textbox = document.getElementById("element_ID")

textbox.value = "if you know how to do this, please tell me!"

 

Thank you!

Link to comment
Share on other sites

Link to post
Share on other sites

On 8.1.2017 at 0:23 PM, tartarisfully said:

textbox.value = "if you know how to do this, please tell me!"

 

 

Has to be said. That's not Java, it's JavaScript! 

Link to comment
Share on other sites

Link to post
Share on other sites

On 1/10/2017 at 1:42 AM, MoVo said:

Has to be said. That's not Java, it's JavaScript! 

i assumed the OP meant javascript

             ☼

ψ ︿_____︿_ψ_   

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, SCHISCHKA said:

i assumed the OP meant javascript

It derserves berating in the least, your conduct is shameful as is your lack of code tags.

The single biggest problem in communication is the illusion that it has taken place.

Link to comment
Share on other sites

Link to post
Share on other sites

36 minutes ago, Nuluvius said:

It derserves berating in the least, your conduct is shameful as is your lack of code tags.

the answer was simple enough and I'm going to use i was on mobile as an excuse

             ☼

ψ ︿_____︿_ψ_   

Link to comment
Share on other sites

Link to post
Share on other sites

If you can't contribute to the forums in a useful way while on mobile, you should probably just postpone your postings.

Write in C.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×