Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

want to display value in a text box  RSS feed

 
prriya pratheep
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

In my program when i click a image button it will call program which returns a value

<td ><img alt "new" />)</td>showID will return a value...

I want to display this value in a text box

<span id="empid1"> </span> <input name="empno" type="text" id="empno" size="40" maxlength="50" />

In this above code the value is displaying near to text box...i want to display it inside the text box.

id is empid1

Thanks



 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
prriya pratheep wrote:In my program when i click a image button it will call program which returns a value
On the web you don;t "call a program" so it's not clear what you mean by this. Submit a form? Make an Ajax request? other?

How does the value get returned?

I want to display this value in a text box
Once you have a value, simply set is as the value property of the input element.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!