how can i use the parameter: marked with $ (this) in jQuery?
i.e. $ (this: checked)?
thank
$(this).filter(":checked");
or if you are testing it
if ($(this).is(":checked")){ // ... }
Like this:
if ($(this).is(':checked'))
Use the is () method.
$(this).is(':checked') returns boolean.
$(this).is(':checked')
The Node flag has its own property checked, therefore:
checked
if (this.checked) ...
There is no need to do jQuery to do a bunch of work, packing this trivially simple check in a selector. The DOM version is well readable.
try $(':checked', $(this))
$(':checked', $(this))
Source: https://habr.com/ru/post/1742997/More articles:Using the embedded database (SQLite / SQL Compact) to send messages in an application? - designDynamically search in class fields (each time a different field) - c #How to limit the ellipsis of fields on a model? - djangoPortrait orientation for iPad only? - xcodeproblems with build options for accepts_nested_attributes_for - ruby-on-railsHow to become a jQuery no.conflict expert? - javascriptHow to extract properties for refactoring - c #Difference in the display of dates in the MS Word field - ms-wordWhat are common software product compliance standards? - securityASP.NET MVC 2 Display Name DataAnnotaion from Resource not working - .net-4.0All Articles