As you see I have more than one data-record-*
attribute and I want to get value of these attribute using by each function with the help of jquery.
but I want to get of these value automatically with jquery for example attribute begins with ``data-record`.
I will post these value with jquery/ajax
$('a').on('click',function(){
var el = $(this).data();
el.each(function(e){
alert(el);
})
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<a href="#" data-record-id="1" data-record-name="section-1" data-record-order="short" class="ajax">Click on me!</a>