Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript 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: 66142
141
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!