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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -