表格行动不适用于表格内的表格

时间:2015-10-20 12:26:53

标签: html angularjs html5

<div class="h4 form-group">Tariff Changeset</div>
    <ng-form novalidate class="form-horizontal offer-form" name="offerForm">
<div class="btn-toolbar form-group" ng-hide="tariffSaved">
            <button class="btn btn-default" ng-click="Save()"><span>Save</span></button>
            <button class="btn btn-default" ng-click="Done()"><span>Done</span></button>            
        </div>
        <div class="row form-group" ng-show="tariffSaved">
            <a class="link" href="/services/Tariff/GetChangesetAsFile{{prodCodes}}">Download data</a>&nbsp;&nbsp;
            <a class="link" ng-click="readyToUpload=!readyToUpload">Upload data</a>&nbsp;&nbsp;

                <form action="/Data/TariffExcelUpload" method="post" enctype="multipart/form-data">
                    Select image to upload:
                    <input type="file" name="fileToUpload" id="fileToUpload">
                    <input type="submit" value="Upload Image" name="submit">
                </form>

        </div>
    </ng-form>    
</div>

所以当我点击&#34;上传图片&#34;时,动作(动作=&#34; / Data / TariffExcelUpload&#34;)没有被击中。事实上,没有任何事情发生。这是由于ng-form中的形式?或此HTML的其他一些问题

提前致谢

0 个答案:

没有答案