<h:inputText value=" " onblur="test(this);" /> What I can do with "this"

As there is no id for input text and I have to validate the input text.I have looked some where onblur="test(this);" but don't know what "this" is in the argument in the test() and how can I use it in the script to validate input.Thanks.Roshan
[272 byte] By [Doga] at [2007-11-27 8:11:21]
# 1
this refers to the calling object itself, in your case the text field.Your script may look like:function test(obj) {alert(obj.value);//To do}Message was edited by: MrsG
MrsGa at 2007-7-12 19:55:19 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...