189
rated 0 times
[
194]
[
5]
/ answers: 1 / hits: 90001
/ 9 Years ago, sat, august 1, 2015, 12:00:00
I didn't find a way to get aria-expanded value from DOM.
<a class=accordion-toggle collapsed href=#collapse-One data-parent=#accordion-1 data-toggle=collapse aria-expanded=false>
<i class=fa fa-search-plus></i>
test
</a>
I want to test if it's true
then I can change <i>
class to fa-search-minus
. I tried this but I always get an undefined value:
console.log($(this).find('a.aria-expanded').val());
More From » jquery