Click here to Skip to main content
15,893,381 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
for (int i = 0; i < list.Count; )
{ htmlStr += "
<input type='checkbox' Id=" + list[i] + " name=' ' value=' '> " + lststr[i] + "<input type='checkbox' Id=" + list[i + 1] + ">" + lststr[i + 1] + " ; i = i + 10; }
return htmlStr;


this is my code,
My requirement is whene user click on from these checkboxes the background color of these checkbox is changed.....
plz help...
Posted
Comments
Rajkumar_007 6-Mar-14 5:33am    
for (int i = 0; i < list.Count; )
{
htmlStr += "<tr><td><input type='checkbox' Id=" + list[i] + " name=' ' value=' '> " + lststr[i] + "</td><td><input type='checkbox' Id=" + list[i + 1] + ">" + lststr[i + 1] + " </td><td>; i = i + 10;
}
return htmlStr;



this is my code,
My requirement is whene user click on from these checkboxes the background color of these checkbox is changed.....
plz help...

Do you want to change the color of a particular area when checkbox is checked or you want to change the color of checkbox itself?

What I understood, you want something like… as shown in the below link:

http://jsfiddle.net/B7P65/1/[^]
 
Share this answer
 
Comments
Snesh Prajapati 6-Mar-14 6:21am    
Confirm me. I will try to solve your problem..
Rajkumar_007 12-Mar-14 2:10am    
Thank u sir...:)
Snesh Prajapati 12-Mar-14 2:15am    
Most welcome. I would prefer to be addressed as Snesh or Mam, not Sir !!
I think below link is matching with your requirement. Please visit it.

http://jsfiddle.net/sXZuW/[^]
 
Share this answer
 
Comments
Snesh Prajapati 6-Mar-14 6:45am    
Do not use:
type='checkbox'

use style to draw checkbox like:
style="width:15px;height:10px;"
Rajkumar_007 12-Mar-14 2:12am    
Thank you..... :)
Snesh Prajapati 12-Mar-14 2:15am    
welcome !!

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