If i have formed html with divs Here example
<div>
<a href='#' class='auction-position block'>
<div class='company-logo block'>Sort By Name</div>
<div class='company-data block'>Sort By ID</div>
<div class='auction-information block'>
<div class='auction-date block'>Sort By Date</div>
<div class='amount-days block'>Sort By Km</div>
</div>
<div class='amount-lots block'>Sort By Amount</div>
<div class='rates block'>
<time datetime='00:00:26444641'>Sort By Time</time>
</div>
<div class='clear'></div>
</a>
</div>
How To sort divs by pressing on "Sort By .." ? It is possible to do wiht Javascript or jquery?
you can change that into a table and use DataTables jquery plugin. https://www.datatables.net/
Here is and example of the javascript
$(document).ready(function() {
$('#table_id').DataTable({
false,
false,
false
});
} );
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments