javascript - Convert :unchecked to prop('checked',false) -


i'm using jquery version 1.8.0 , i'm getting error message "uncaught error: syntax error, unrecognized expression: unchecked"

jquery changed unchecked prop('checked',false) .i tried changing code but, not working.

 if($('input[name='+family+']:unchecked').length){      } 

i replaced

if($('input[name='+family+']).prop('checked',false).length){  } 

use :not selector :checked:

if($('input[name='+family+']:not(:checked)').length){    //do something.. } 

Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -