aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes want to display value in a text box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "want to display value in a text box" Watch "want to display value in a text box" New topic
Author

want to display value in a text box

prriya pratheep
Greenhorn

Joined: Jun 10, 2008
Posts: 22
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

Joined: Jan 10, 2002
Posts: 61434
    
  67

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.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
jQuery in Action, 2nd edition
 
subject: want to display value in a text box