Hi
is there a way to get the following code to disable the button called next
when the button "btn" is clicked i call the javascript function myFunc but it does not disable the button called "Next"
<html>
<head>
<title>Personal Info</title>
</head>
<body>
<script type="text/javascript">
function myFunc()
{
document.personalForm.Next.disabled=true;
}
</script>
<f:view>
<h:form id="personalForm">
<h:commandButton id="Next" value="Next" action="doSomething" />
<h:commandButton id="btn" value="button" immediate="true" onclick="myFunc()" />
</h:form>
</f:view>
</body>
</html>