get name of element jquery code example
Example 1: jquery get value by name
$("input[name=nameGoesHere]").val();
Example 2: get name jquery
$('#yourid').attr('name')
$("input[name=nameGoesHere]").val();
$('#yourid').attr('name')