How two take two input type button on single page in html5

Posted by manoranjanguptaoutlook-19221 under HTML 5 on 6/14/2013 | Points: 10 | Views : 2399 | Status : [Member] | Replies : 2
Hello When i clicked on logout button it strike to txtname and require for value rather i m not clicking upload button
Any one have any idea how to do this

#Manu
9873306227

Manoranjan Gupta Manu
9873306227



Responses

Posted by: Allemahesh on: 6/14/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
Dear Manu, Can you please elaborate you question more clear.

manoranjanguptaoutlook-19221, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Siddhipatel on: 3/13/2020 [Member] Starter | Points: 25

Up
0
Down
hello...
you can try like this way...

  @using (Html.BeginForm("Test", "Test", FormMethod.Post, new { id = "submitForm" }))
{
<div>
<fieldset>
<legend>Form</legend>

<div class="editor-label">
@Html.LabelFor(m => m.UserName)
</div>
<div class="editor-field">
@Html.TextBoxFor(m => m.UserName, new { maxlength = 50 })
@Html.ValidationMessageFor(m => m.UserName)
</div>

<div class="editor-label">
@Html.LabelFor(m => m.Address)
</div>
<div class="editor-field">
@Html.TextAreaFor(m => m.Address, new { maxlength = 200 })
@Html.ValidationMessageFor(m => m.Address)
</div>
<p>
<button type="submit" id="btnSave" name="Command" value="Save">
Save</button>
<button type="submit" id="btnCancel" name="Command" value="Cancel" onclick="$('#submitForm').submit()">
Cancel (Server Side)</button>
</p>
</fieldset>
</div>
}


Software Developer at iFour Technolab Pvt Ltd

manoranjanguptaoutlook-19221, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response