weixin_33728708 2016-01-31 14:43 采纳率: 0%
浏览 32

表单控件jquery和ajax

i have this form, take from site , i have add input and now not work

I just have to figure out what 's wrong with the control jQuery

        <div class="row">
            <div class="span4">
                <h3><strong>1.</strong> <span>Informazioni personali</span></h3>







            </div><!-- /.span4 -->





            <div class="span4">

                <h3><strong>3.</strong> <span>Upload Foto</span></h3>

                <div class="fileupload fileupload-new control-group" data-provides="fileupload">
                    <label class="control-label" for="inputPropertyPrice">
                        Image files
                    </label>

                    <div class="input-append">
                        <div class="uneditable-input">
                            <i class="icon-file fileupload-exists"></i>
                            <span class="fileupload-preview"></span>
                        </div>
                                            <span class="btn btn-file">
                                                <span class="fileupload-new">Select file</span>
                                                <span class="fileupload-exists">Change</span>
                                                <input type="file"  name="file" id="file" />
                                            </span>
                        <a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Remove</a>
                    </div><!-- /.input-append -->
                </div><!-- .fileupload -->

I can not put all the above code so I made ​​a Fiddle.

do you think the tag upload is right? Where do I upload the file I wrote well?

how can I add an upload that takes only .jpg ?

  • 写回答

1条回答 默认 最新

  • weixin_33730836 2016-01-31 15:38
    关注

    You have a couple typos in the code:

    • || bagni == || should be || bagni == "" ||
    • !emailReg.test(email) should be !emailReg.test(email1)

    Fined JSFiddle

    Try and use the developer console before asking a question on SO.

    评论

报告相同问题?

悬赏问题

  • ¥20 delta降尺度方法,未来数据怎么降尺度
  • ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效
  • ¥15 再不同版本的系统上,TCP传输速度不一致
  • ¥15 高德地图点聚合中Marker的位置无法实时更新
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程