html - Javascript error addFiles() is not a function -
so when click addfiles button error in firebug says
"typeerror: addfiles not function."
this doesn't make sense me because if go firebug , @ script addfiles() function there. code looks like:
<input id="addfiles" type="button" name="addfiles" value="add files" onclick="addfiles();"> <script type="text/javascript"> function addfiles() { } </script>
edit:
<form id="eventform" onsubmit="eventinfo();"> <table id="hornevent" class="horntable"> <tr> <td colspan="5" style="text-align:right"> <input id="addfiles" type="button" name="addfiles" value="add files" onclick="addfiles();"> <input id="close" type="submit" name="close" value="close"> </td> </tr> </table>
rename function function somethingelse() , see if works. may conflict name of function/input (same name/id addfiles)
Comments
Post a Comment