Attribute "Start With" in jquery is very simple, but i have a problem How use this attribute for current element? As example i tried:
$('this[id^= "PostTypes"]')
AND
$(this[id^= "PostTypes"])
But nothing want works.
Attribute "Start With" in jquery is very simple, but i have a problem How use this attribute for current element? As example i tried:
$('this[id^= "PostTypes"]')
AND
$(this[id^= "PostTypes"])
But nothing want works.
Try,
Or if you want to check if the current element is a match then you can use .is(selector):
Example: