Sort list items loaded after ajax call using jquery – Jquery ajax
Consider 2 files: File 1 - list.html <ul> <li>Dog</li> <li>Ant</li> <li>Cat</li> </ul> File 2 - ajax.html <html> <body> <button type="button">Click</button> <ul id="list"> </ul> <script type="text/javascript"> $("button").click(function() { $("#list").load("list.html ul > li"); }); </script> </body> </html> Here file 1 contain list…