The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Multiple oninput Events
Terminator
post Sep 19 2016, 04:15 PM
Post #1


Advanced Member
****

Group: Members
Posts: 218
Joined: 19-March 15
Member No.: 22,398



I am making a Password Generator, is it ok to put oninput like I did below?

I have it set to run a function to generate the password, as well as change the display number for the slider when you move the slider.

CODE

<input type="range" id="num"
oninput="GeneratePassword(); numOutputID.value=num.value"
min="8" max="50" step="1" value="12">
<output id="numOutputID">12</output>


This is the first time I have ever had a reason 2 put more than 1 thing inside of oninput, I can just separate with a semicolon right?

I did not get any HTML Validator or Chrome Debugging JavaScript errors.

This post has been edited by Terminator: Sep 19 2016, 04:16 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 25th April 2024 - 10:31 PM