I'm trying to send the value of the element to the back-end ManageBean for example I have the below button :
<p:commandButton action="#{serviceBean.insertSubscriberPinCode() class="Regest"
value="CONFIRM">
</p:commandButton>
if I want to catch the element using javascript it will be done as shown below :
<script>
var button = document.getElementsByClassName("Regest")[0];
</script>
my question is how could I send the value of the var button to my bean?