Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
how to apply validation in html radio button control?
Maharudra Gadekar
8y
224
1
Reply
Hi,
I am using HTML 5 control in mvc view but i dont no how to set the required field validation....show below code....
<input type="radio" name="payment" value="C" @( this.Model.paymode == "C" ? "Checked" : "") />
<input type="radio" name="payment" value="O" @( this.Model.paymode == "O" ? "Checked" : "") />
@html.validationmessagefor(x=>x.paymode)
I am using code but not done. how to set validation of that control. Please help me.
thanks in advance
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Embedding Resources
unable to see whole page in print preview in google chrome