Here is a similar function for radio buttons:
<script>
yui().use("node", "event", function(Y){
var nextButton = Y.one('#id_submitbutton'),
allAnswers = Y.all('answerid');
//FUNCTIONS
/*When the page has loaded-
*Hide the submit button
*/
Y.on("domready", function(){
nextButton.hide();
//document.getElementById("answerDiv.input").setAttribute("class", "answers");
});
//When an input box is clicked,
var clickedAnswer = function(e){
nextButton.show();
}
allAnswers.on("click", clickedAnswer);
});]
</script>
I've tried implementing it in the html block of the lesson page, but it doesnt work. How exactly do I implement this onto a single lesson page?