S
S
Secret_dungeon2020-10-13 21:13:27
Flask
Secret_dungeon, 2020-10-13 21:13:27

How to check which option is selected in select?

How to check which option is selected in select?

<form method="post" name="inform">
        <select name="menu" size="1">
        <option value="news" >Новости</option>
        <option selected="selected" value="nformation">Информация</option>
        <option selected="selected" value="important information ">Важная информация</option>
        </select>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CaufMAN, 2020-10-22
@CaufMAN

You either accept this as a form on the backend, or process the form with js on the front. Please clarify what exactly you are doing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question