Click here to Skip to main content
15,897,360 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
I need to change an image on a check box in MVC, it's not working now, below is the code, can someone tell me what I am missing?

Here is the view file


XML
<table>
<tr>
<td>
    <div class="btn-group pull-right" data-toggle="buttons">
               <label id="lblStatementCheckBox" class="btn btn-p1-navbar active pull-right" onclick="ToggleStatementCheckBox();">
                 <input id="btnStatement" name="" type="checkbox" autocomplete="off">
                    <span class="glyphicon glyphicon-remove"></span>
               </label>
        </div>
</td>
</tr>
</table>

function ToggleStatementCheckBox() {
            alert("I am in here");
            $('#lblStatementCheckBox span.glyphicon').toggleClass("glyphicon-ok");

}
Posted

1 solution

Try these links -
Customize CheckBox in ASP.NET[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900