I am trying to retrieve a data attribute of type Boolean from an html DIV element , however it is always returning false when the string is converted to boolean .
H
jQuery recognizes the string "true" as it's boolean counterpart (in the context of data attributes) and thus:
typeof isreturn_str; // boolean
but you're strictly comparing to the string 'true' which yields false as a string is not a boolean.
'true'