2015-07-02から1日間の記事一覧
aタグでsubmitするときに、document.formname.submit is not a function が出たので、調べてみました。 結論は、 document.forms.formname.submit is not a function とする必要があるそうです。(formsをつける!) <form action="#" id="example" name="example"> <a href="javascript:void(0); onclick="document.forms.example.submit(); return false;"> </a></form>