@using (Html.BeginForm()) {
@Html.ValidationSummary(true)
<fieldset>
<legend>Teachers Ratings Wall</legend>
<div class="editor-label">
@Html.LabelFor(model => model.StarRating)
</div>
<div class="editor-field">
@*@Html.EditorFor(model => model.StarRating)*@
@Html.ValidationMessageFor(model => model.StarRating)
<input name="star1" type="radio" class="star"/>
<input name="star1" type="radio" class="star"/>
<input name="star1" type="radio" class="star"/>
<input name="star1" type="radio" class="star"/>
<input name="star1" type="radio" class="star"/>
</div>
<div class="editor-label">
@Html.LabelFor(model => model.PostComment)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.PostComment)
@Html.ValidationMessageFor(model => model.PostComment)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.PostDate)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.PostDate)
@Html.ValidationMessageFor(model => model.PostDate)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Teacher)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Teacher)
@Html.ValidationMessageFor(model => model.Teacher)
</div>
<p>
<input type="submit" value="Create" />
</p>
</fieldset>
Using jquery star rating plugin MVC3
Page 1 of 10 Replies - 3931 Views - Last Post: 28 February 2012 - 08:50 PM
#1
Using jquery star rating plugin MVC3
Posted 28 February 2012 - 08:50 PM
I'm using a jquery star rating plugin. Before I would just have a EditorFor Textbox and that would pass in the value of what ever the user would type but now I have 5 stars to rate a teacher for example, how can pass the value of stars in my parameter. For example is i rate a teacher 4 stars, how can/would I pass that 4 in with everything else I'm submitting?
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote


|