jquery - How to set defaultsort in display table dynamically -


how set defaultsort attribute in display table through variable of jsp or jquery ?

adding details,

i using display table below:

<display:table name="testlist" sort="external" defaultsort="1" id="element">   <display:column property="id" title="id" sortable="true" sortname="id" />   <display:column property="firstname" sortable="true" sortname="firstname" title="first name" />   <display:column property="lastname" sortable="true" sortname="lastname" title="last name" />   <display:column property="address" sortable="true" sortname="address" title="email address"/> </display:table> 

how change value of defaultsort based on condition in java script.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -