之后如何获得Doctor Experience标签面板submit uploading image
Cs.Html:
@using (Html.BeginForm("AddDoctorImage", "Doctor", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
<section>
<div class="row">
<div class="col-lg-4">
<fieldset class="form-group">
<label class="form-label semibold">Upload Doctor Image</label>
@*<input type="file" name="postedFile" id="txtUploadImage" class="btn btn-rounded btn-file" style="cursor:pointer;" />*@
<span class="btn btn-rounded btn-file">
<span>Choose file</span>
<input type="file" name="postedFile" id="postedFile">
</span>
</fieldset>
</div>
<div class="col-lg-4">
<fieldset class="form-group">
<label class="form-label semibold">Perview Image</label>
<img id="image_upload_preview" src="http://placehold.it/100x100" alt="your image" />
<a id="remove" onclick="javascript:ClearFileUploadControl();" style="display: none; cursor: pointer;">Remove</a>
</fieldset>
</div>
<div class="col-lg-4">
<input type="submit" …Run Code Online (Sandbox Code Playgroud) 我有两个按钮.第一个按钮的ID是#doNotShowWhenClickedDetail,第二个按钮的id是hidethisbutton.
当我单击第一个按钮时,我想隐藏第二个按钮.当我再次点击第一个按钮时,我想这次显示第二个按钮.(比如点击下拉列表).
这是我的jquery代码.我已完成第一次点击但无法管理第二次点击
$("#doNotShowWhenClickedDetail").click(
function (){$("#hidethisbutton").hide();}
);
Run Code Online (Sandbox Code Playgroud)
谢谢
我需要将JavaScript变量值传递给另一个JavaScript函数
$("#myTabs form").on('submit', function (e) {
e.preventDefault();
var linkHref = $(this).parents('.tab-pane').attr('id');
$('#myLinks li a').removeClass('active');
$('#myLinks li')
.find('a[href="#' + linkHref + '"]')
.parent()
.next()
.find('a')
.tab('show')
.addClass('active')
.attr('data-toggle', 'tab');
$('a.nav-link').not('.active').css('pointer-events', 'none');
var SAPno = linkHref;
});
$('a.nav-link').not('.active').css('pointer-events', 'none');
Run Code Online (Sandbox Code Playgroud)
For Example var SAPno值需要传递给另一个JavaScript函数
function GetInfo() {
var ID = SAPno;
}
Run Code Online (Sandbox Code Playgroud)
可能吗..