开发者

mvc2 multiple content place holders [duplicate]

This question already has answers here: Submit an HTML form with empty checkboxes (8 answers) Closed 2 years ago.

multiple content place holders..1 with a text entry box and a submit button.. the s开发者_如何学Cecond content place holder has several options in.. when i perform the submit the options from the 2nd place holder aren't getting passed through. can you suggest a method on how i can perform this submission passing all values to my controller? the values outside the 1st place holder are getting set to null.

thanks


thanks, i resolve the problem with your help!

    $('#indexform').submit(function (ev) {
    $('#hiddenField').attr('value', $('input[name=CheckboxOption]:checked').val());
    return true;
});

    <fieldset>
        <%: Html.HiddenFor(searchCriteria => searchCriteria.Database, new { id = "hiddenField" })%>
    </fieldset>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜