Maybe I missed something and at the same time failed on google, but how would I say something like this:
... if ($(this:enabled)){ //some code } ...
I know that you usually say something like $("#someID:enabled") , but how to use with $(this) ?
$("#someID:enabled")
$(this)
You can use the is(selector) method:
is(selector)
if ($(this).is(':enabled')) { // some code }
try the following:
if($(this).is(':enabled'))
jQuery has a filtering method that you can use to do this.
if( $(this).is(':enabled') ) { // do something here }
http://api.jquery.com/is/
Source: https://habr.com/ru/post/1210192/More articles:UICollectionView shows footer for last section only - swiftIIFE calls evaluation function - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1210189/refresh-tokens-in-oauth2-should-not-be-replaced-when-getting-a-new-access-token&usg=ALkJrhjY1KX0NgDTLy0DbIBmi1lJGSdpAQAlternative to colon in time format - filenamesSpring Execution step (java-config) after job executionExeuctionDecider - javaBrilliant: reactUI reactUI - r'Translation from jQuery to JavaScript' - javascriptJava - How to improve print rendering? - javaPredicates Type for Function Types in Typed / Racket - racketMismatch between the Eclipse compiler and javac - enumerations, interfaces, and generics - javaAll Articles