jquery - Sorting divs using query tinysort plugin -


i trying use tinysort jquery plugin order load of divs id of each div. each div has id :

<div id="div1"></div> 

so id word div followed number. using following code :

<script> $(document).ready(function() { $("div").tsort("",{attr:"id"}); } );  </script> 

which grabbed previous stackoverflow post , modified, doesn't appear work reason ?.

https://jsfiddle.net/mba4c/97/

your code working in jsfiddle. sure checkout tinysort website examples , how specify options. http://tinysort.sjeiti.com/

you can use

tinysort("div"); 

and done it, because of standard options

external resources

also on jsfiddle can use sidebar option external resources include tinysort url got github:

https://tinysort.sjeiti.com/dist/tinysort.min.js 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -