Trying to get attribute and store it, need help...

Trying to get attribute and store it, need help...

Heya,

I need to find multiple elements on a page, get the value of the HTML "name" attribute,  and then store it in a session (or something) so I can use it elsewhere on my page.

Does anyone know how/if I can achieve this?

I'm familiar with the find() jQuery function, so I don't need an explanation about how to find the desired elements, rather I need to understand how I get get and store the value of a specific attribute.

Thank you for taking the time to read this!