Hi there
I'm trying to run the 'onchange' event not in the html code but from an external js file for checkboxes to activate 'presupuesto' function. I was trying pretty simple options without succes so far...
This would be the 'regular' in-html code:
-----------------------------Code:<input type="checkbox" name="show" value="" id="show" onChange="presupuesto()" /> <input type="checkbox" name="ilikeit" value="" id=ilikeit" onChange="presupuesto()" /> <input type="checkbox" name="gallery" value="" id="gallery" onChange="presupuesto()" />
And this is how I was trying it to work:
Any sugestions??Code:HTML ---------------- <input type="checkbox" name="show" value="" id="show" /> <input type="checkbox" name="ilikeit" value="" id=ilikeit" /> <input type="checkbox" name="gallery" value="" id="gallery" /> External JS ---------------- document.getElementById("show", "ilikeit", "gallery").onchange=presupuesto();
Thx a million in advance.



Reply With Quote




Bookmarks