i need to acess componets dynamic id in javascript also i tried many ways on the internet but seems not working..
i tried this way..
<ice:selectBooleanCheckbox id="chkk" binding="#{input1}" onchange="test(this)"/>
so that you can just print its client ID elsewhere in the view by UIComponent#getClientId().
test(){
var input1 = document.getElementById('#{input1.clientId}');
alert(input1);
}
Here i am getting input1 values as null..
and i am not doing anychnges in java side plz suggest me where i am mistaken...
Thanks for help in advance.