After page fully loaded, I want to make the first in inputfield tag can change to required and unrequired based on another input field value using javascript function in Visualforce page.
When I am using required attribute itself in in the inputfield tag it is working only while page loading and not when I change the value of another input field in visualforce Page.
Could anyone help to achieve this with any example using two inputfield tags in visualforce page.