Hi,
I'm trying to change the content of a div based on text input. I've got the text input part working, ie, I can fire an alert box when the number in the text box isn't high enough, but I can't get the div I'm targeting to change.
Here's my code:
Not sure what I'm doing wrong, this works outside of CF... Am I missing something?
I'm trying to change the content of a div based on text input. I've got the text input part working, ie, I can fire an alert box when the number in the text box isn't high enough, but I can't get the div I'm targeting to change.
Here's my code:
window.addEvent('domready', function() {
$('part_1_age').addEvent('blur', addBlock);
});
function addBlock() {
if($('part_1_age').value<18) {
//alert('jeeze');
$('undereighteen').html('<h2>New info</h2>');
}
}
Not sure what I'm doing wrong, this works outside of CF... Am I missing something?