How do I add the attributes of a tag to a variable so I can insert them elsewhere?
So an input tag should assign a variable:
tags = { 'type' : 'submit' , 'id' : 'submit' };
I know you can ADD attributes using .attr()
, but something like
testMe = $("#submit").attr();
Does not work.