Hi all!
I created a simple form with a simple collection (1 checkbox and 1 input).
I'm trying to change the input value if my checkbox is checked.
I'm using the javascript for this.
$(document).ready(function()
{
$('.cf-collection > div').each(function ()
{
$(this).find('#q3').click(function()
{
$(this).closest("div").find('#q5 input').val("00");
});
});
});
Actually, it's working for the first one but not for the second one and idk why.
What is my mistake please?
Thanks in advance.
Regards