Answer the question
In order to leave comments, you need to log in
Dropdown list or jQuery tree?
Please tell me a script that replaces the usual SELECT (DOM-object) with a more convenient one.
In the browser, if you set the drop-down list tag. When there are not many elements in the list, then everything is OK, but when there are more than 50 of them, it is already difficult to select, especially if it is a tree. We need a script that has convenient navigation through the tree and the selection of an element from the tree and passes it to some DOM object of the hidden type, so that after submitting the form, the id of the selected element can be written to the database.
That is, all articles that are in the database are displayed in select. Something like this:
MySQL database
MSSQL
Programming
PHP
Learn
to program
C#
Change profession
and so - a large list ... 50-100 articles With the help of the select,
I
simply select the parent for the new article, just id and
that
's
it choose a parent. After selection, instead of the Root in the "Parent" field, the name of the parent section appears and the id of the selected section is written somewhere, for example, in INPUT hidden. Form submission and all...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question