How to change image on dynamic checkboxes?
Hi,
I'm new to JQuery and would really appreciate some help!
I have dynamic checkboxes which has an icon and image on it (checkbox is hidden)...
- plcUserReq.Controls.Add(new LiteralControl("
- <div data-toggle='buttons' style='margin-top:-3px'>
- <label class='btn' for='Lines' style='padding:0px 0px 0px 0px; margin:0px 0px 0px 0px'>
- <input type='checkbox' autocomplete='off' name='chkbx' value='" + UID.ToString() + "'id='chk'"+ UID.ToString() + i.ToString() +"/>
- <i class='btn fa fa-plus-square-o' aria-hidden = 'true'>
- <img src='http://localhost:3162/images/moderator-red.gif'></i></label></div>"));
I want the image and icon to change on click....when each checkbox is clicked...
This is the script I'm trying with...
Please help! I'm stuck!