Mootools element returning null
Posted
by sea_1987
on Stack Overflow
See other posts from Stack Overflow
or by sea_1987
Published on 2010-05-26T14:49:25Z
Indexed on
2010/05/26
14:51 UTC
Read the original article
Hit count: 128
JavaScript
|mootools
I have this HTML/PHP
<input name="add to list" class='fncAdd' id='moodal_close' value="add to list" onclick="cajaxUpdateCartProduct('<?= $value->id ?>', 'quantity_<?= $value->id ?>', '<?= $this->sitePfx ?>/cart/');" type="button">
In my javascript I have
$('moodal_close').addEvent('click', function(){
alert("1");
});
In my firebug console the only response I get is
$("moodal_close") is null
© Stack Overflow or respective owner