How to specify name attribute in h:inputText?

前端 未结 2 969
说谎
说谎 2020-12-31 10:20

I need to render h:inputText as following html output :

  
  

        
2条回答
  •  余生分开走
    2020-12-31 11:02

    You are able to do what you want without specifying the name attribute. The id attribute is enough. Try the following as per an example:

    < h:inputText id="email" ... />
    
    ...
    $("#email input").click(function (event) {
    ...
    }
    

    instead of

    $("#email input[name='email']").click(function (event) 
    

    Hope this is what you are looking for :)

提交回复
热议问题