I have a form and I have some elements that are hidden by default. I have them wrapped into a div with id "showme". I want to show these elements and also populate some of the elements with data from above elements using a radio button.
I have been trying some mootools code that doesn't seem to be working. I added this in the form Javascript code box.
I have no experience with mootools. I hope someone can help me with my problem.
I have been trying some mootools code that doesn't seem to be working. I added this in the form Javascript code box.
window.addEvent('domready', function() {
if ( $('retourrit-ja').checked ) {
alert("It's checked");
}
});
I have no experience with mootools. I hope someone can help me with my problem.
Hi moleculezz,
That code will only run when the page loads. You need to use addEvent to attach it to an input and fire it.
Bob
PS It's risky to use '-' in names or ids with ChronoForms.
That code will only run when the page loads. You need to use addEvent to attach it to an input and fire it.
Bob
PS It's risky to use '-' in names or ids with ChronoForms.
Yes.. that was it. Thanks!
I will keep you advice in mind from now on. Thanks again!
I will keep you advice in mind from now on. Thanks again!
This topic is locked and no more replies can be posted.