Number of entries in 'li' - list form

Number of entries in 'li' - list form

kesavanrajkesavanraj Posts: 2Questions: 0Answers: 0
edited January 2014 in General
I am working on a requirement, Where i want to show the number of entries in the list (), from the default select box () option. Help me on this. Thanks in advance.

Replies

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395
    You will need to supply more information. What list? What select box?
  • kesavanrajkesavanraj Posts: 2Questions: 0Answers: 0
    I am totally new here, I will try to explain. On each data table header we have show entries, were we have options something like 10,20,30... This is normally displayed in select options, Insted i want it to be in List in ul li.
  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395
    I don't understand why you would want to do that. How can you select an item from a list without a whole bunch of extra code? That is the whole point of that : dataTables has inherent support.
  • allanallan Posts: 63,695Questions: 1Answers: 10,500 Site admin
    There is a plug-in here that basically does exactly that: https://github.com/DataTables/Plugins/blob/master/features/lengthChange.js . It doesn't wrap the elements in a ul/li list, but that's a trivial modification if you want that :-)

    Allan
This discussion has been closed.