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

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -