This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to use selectOneRadio with javascript?

 
Jamil Shreet
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody:
I have selectOneRadio with 2 selectItem, I want to use it for hide and show some <h:inputText> under the radio button.
I searched a lot for code to use javascript with it but I didn't find anything help me, so please try to help me.
This is the code for face page and javascript


 
HtaraS reddy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did your code enter the javascript call?

If yes, Would you check the id of 'failedMark' generated by JSF, by viewing the source of the page in the browser and check if it is equal to the one given by you in the javascript.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic