Find class or id name and make it a string?
Hi,
Is it possible to create a function that will find a class name or id name and then assign that name as variable string?
For example, my body has a class name:
<body class="Sunday">
I need to have a function (using jquery or just regular javascript) that will determine that class name and then assign it to a variable named bodyClass, so that bodyClass="Sunday".
I know it's probably a pretty easy question but I'm not quite getting it.
Thanks for any help!