Mootools element returning null
- by sea_1987
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(){
…