Sorting elements of array Using jQuery

Posted by Self-Innovator under jQuery category on | Points: 40 | Views : 2217
//Under head Section

<script language="javascript" type="text/javascript" src="">  

<script language="javascript" type="text/javascript">
//Sorting the Elements
$(document).ready(function() {
var elements = ["Sallu Bhai", "SRK", "Aamir"];
elements = elements.sort();
$("#main1").append("<p>After Sorting Elements</p>");

//Body Section
<form id="form1" runat="server">
<div id="main1">
<div id="main2">

Comments or Responses

Posted by: Virendradugar on: 4/9/2012 Level:Silver | Status: [Member] [MVP] | Points: 10
Good!!! I also found another article which explains all possible operation with Array using jQuery.

Login to post response