October 22, 2024
Chicago 12, Melborne City, USA
javascript

how to sort option elements in html


so I made a HTML for a library wherein if students want to borrow a book they would need to enter the following, student name, Book name and book type well it did work somehow the program was able to input the name of student, book, subject and the date it was borrowed though my problem is that it has no sorting and im having a hard time scrolling find the specific data
the div class contains 3 input elements (for student name, book name and date), select element (with 3 options named Story books , Educational books and Modules)

but i wanna start on making the options in the select element as the sorting button first

well I tried to put each of the three

addTypeButton.addEventListener("click", () => {

    const type = typeInput.value = "";



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video