Maybe I'm missing something and failing at google all at that same time but how would I say similar to:
...
if ($(this:enabled)){
//some code
}
...
I know normally you'd say something like $("#someID:enabled")
but how to use with $(this)
?
You can use the is(selector)
method like this:
if ($(this).is(':enabled')) {
// some code
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With