试一下:
<html:text ... onselect="JS函数;"/>

解决方案 »

  1.   

    onselect因该是<html:select>的吧。<html:text>不支持onselect。
    要做什么应用的,onchange或别的可不可以。
      

  2.   

    <html:text>没有onselect事件 要想达到目的还是用<input type="text">吧
      

  3.   

    see this documentation:
    onblur JavaScript event handler executed when this element loses input focus. [RT Expr]  
    onchange JavaScript event handler executed when this element loses input focus and its value has changed. [RT Expr]  
    onclick JavaScript event handler executed when this element receives a mouse click. [RT Expr]  
    ondblclick JavaScript event handler executed when this element receives a mouse double click. [RT Expr]  
    onfocus JavaScript event handler executed when this element receives input focus. [RT Expr]  
    onkeydown JavaScript event handler executed when this element has focus and a key is depressed. [RT Expr]  
    onkeypress JavaScript event handler executed when this element has focus and a key is depressed and released. [RT Expr]  
    onkeyup JavaScript event handler executed when this element has focus and a key is released. [RT Expr]  
    onmousedown JavaScript event handler executed when this element is under the mouse pointer and a mouse button is depressed. [RT Expr]  
    onmousemove JavaScript event handler executed when this element is under the mouse pointer and the pointer is moved. [RT Expr]  
    onmouseout JavaScript event handler executed when this element was under the mouse pointer but the pointer was moved outside the element. [RT Expr]  
    onmouseover JavaScript event handler executed when this element was not under the mouse pointer but the pointer is moved inside the element. [RT Expr]  
    onmouseup JavaScript event handler executed when this element is under the mouse pointer and a mouse button is released. [RT Expr]  
      

  4.   

    你要用onselect做什么,一般用onchange onclick 等
      

  5.   

    <html:text/> 的事件有以下这些,没有onselectonblur
    onchange
    onclick
    ondblclick
    onfocus
    onkeydown
    onkeypress
    onkeyup
    onmousedown
    onmousemove
    onmouseout
    onmouseover
    onmouseup
    readonly