This content has been marked as final.
Show 4 replies
-
1. Re: getting current value on an inputNumberSpinner in javasc
sergeysmirnov Jun 25, 2007 8:17 PM (in response to jersinghaus)try
onchange="alert(this.getValidValue())" -
2. Re: getting current value on an inputNumberSpinner in javasc
jersinghaus Jun 26, 2007 10:48 AM (in response to jersinghaus)What if we want to get at the element from outside the control itself?
I've got the spinner in a modal panel. When the panel pops up, I'd like to know what the value of the spinner is.
Thanks,
Joe -
3. Re: getting current value on an inputNumberSpinner in javasc
sergeysmirnov Jun 26, 2007 1:24 PM (in response to jersinghaus)document.getElementById(client_id_of_spinner_here).value
-
4. Re: getting current value on an inputNumberSpinner in javasc
jersinghaus Jun 26, 2007 3:22 PM (in response to jersinghaus)Sergey,
This is strange:
document.getElementById(client_id_of_spinner_here) is returning an HTMLTableElement object, which has no 'value' attribute.
But this code: document.getElementsByName(client_id_of_spinner_here)[0] returns HTMLInputElement. I'm using this form for now.
I have the spinner inside a rich:modalPanel; could this be causing this?
- Joe