aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes How do I find out text-change in readonly text box ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "How do I find out text-change in readonly text box ?" Watch "How do I find out text-change in readonly text box ?" New topic
Author

How do I find out text-change in readonly text box ?

Deepa More
Ranch Hand

Joined: May 22, 2006
Posts: 68
Hi all,
I wanted to call one function on text-change of read only text box.
Its a readonly text box for date field. Date is selected by button besides it which opens calendar.When date is changed, I wanted to recalculate time field.
How do I do that?
Any help is appreciated.
bhuvan sundar
Ranch Hand

Joined: Mar 02, 2005
Posts: 104
try this:

function setDate()
{
document.form.textbox.value = selected date;
document.form.textbox.focus();
}

function calTime()
{
//do your calculation
}


Call setDate() in the onClick of the button and calTime() in the onFocus of the textbox.

Hope this helps you..
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How do I find out text-change in readonly text box ?
 
Similar Threads
greying out of text field
how to get the value from the readonly field?????
readOnly disable style
textarea and conditional READONLY
generate table fields by clicking an option!!!