Click here to Skip to main content
15,898,986 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to check if check box is checked or not function load on jquery

What I have tried:

<input type="checkbox" name="planned_checked" id="planned_checked">


function actual_planned_path(time)
{
if($("#planned").prop('checked') == true){
checkbox_cheked();
}

else
{
checkbox_uncheked();
}
}
Posted
Updated 29-Aug-16 1:15am
v2

1 solution

You wrote different id of check box its wrong

<input type="checkbox" name="planned_checked" id="planned_checked">

function actual_planned_path(time)
{
  if($("#planned_checked").prop('checked') == true)
  {
        checkbox_cheked();
  }
  else
  {
     checkbox_uncheked();
  }
}


now it works
you can check from jfiddle also

Check Preview
 
Share this answer
 
v3

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