i have a jquery file that have :
document.getElementById('formId:someId').click();
bla = document.getElementById('formId:inputId3').value;
if(bla =="koko") {
alert(" Done ");
}
in jsf i have the method that change the value of the h:inputText :
<h:inputText id="inputId3" value="#{gestionduplanning.testvalue2}" />
<h:commandButton id="someId" value="Button" action="#{gestionduplanning.exec2()}" style="display:none">
<f:ajax render="inputId3" execute="@all"/>
</h:commandButton>
and in the managed bean i have :
public void exec2() {
this.testvalue2 = "koko";
}
the problem i cant enter the if
in Jquery because they still have the first default value before the change.
how i can update the update the inputText in the Jquery too be fore the Click on the button ??