You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Портфолио https://www.behance.net/d4d4186e
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Актуальные контакты:
Telegram: @Nikker_web
E-Mail: tarasevich.email@gmail.com
Разрабатываю дизайн групп в соц сетях, сайтов, приложений, другой дизайн под заказ
Портфолио https://www.behance.net/d4d4186e
Question
SRastrigin
Здравствуйте.
Подскажите , задача - в списке select сделать выбор цвета с помощью colorPickera
JS<script type="text/javascript"> function change_color(){ var select = document.getElementById('bodyBtn'); document.body.style.background = select.options[select.selectedIndex].value;}HTML<select id="bodyBtn" name="bodyBtn"> <option>-- Выбрать --</option> <option value="#a1a1a1" onclick="change_color()">#a1a1a1</option> <option value="#ff00ff" onclick="change_color()">#ff00ff</option> <option value="" id="defaultColor" name="defaultColor">Выберите цвет</option></select>Вопрос, как сделать выбор произвольного цвета?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.