samedi 30 janvier 2016

materialize switch with mvc model

I am using this code. Switch is not working so not able to get value in check box for.

<div>
    Duplicate Customer Email:<a href="#!" class="secondary-content">
        <div class="switch">
            <label>
                NO
                @Html.CheckBoxFor(m => m.DuplicateCustomerEmail, new { @class = "validate" })
                @Html.HiddenFor(m => m.DuplicateCustomerEmail, new { @class = "validate" })
                <span class="lever"></span> YES
            </label>
        </div>
    </a>
</div>

Please suggest how to bind check box for to materialize switch.




Aucun commentaire:

Enregistrer un commentaire