A2Zmenu.Com
Blog
Tutorials
Online Exam
Ask Question
Utility
Fun @ Work
Wiki
Contact Us
About Us
Loading
Home
Blogs
AJAX
ASP.NET
BI
CSharp
JavaScript
LINQ
Miscellaneous
MVC
SQL
SharePoint
Silverlight
WCF
Tutorials
HTML5
ASP.NET 4.0
CSharp
SharePoint
SQL Function
Online Exam
ASP.NET
LINQ
Silverlight
SQL
JavaScript
SharePoint
Forum
Utility
Fun @ Work
Appraisal
Funny Images
Funny Puzzle
Miscellaneous
Motivating Stories
Life Vs Work
Wiki
Contact Us
HTML5
ASP.NET 4.0
CSharp
SharePoint
SQL Function
Test Your Skill
Q. Which of the following input type was not introduced with HTML5.
URL
Search
multiple
Email
View all questions...
HTML5 Input Type Range
HTML5 comes up with a new input type range. This is very much similar to input type number. This new input type displays range in form of sidebar. It has attribute such as min, max value and step. If not specified explicitly, min value is set to 0 and max is set to 100. You can always override these min and max values. You can also specify the step value.
Attributes(value=[number])
Description
Min
Minimum accepted value for the input field
Max
Maximum value for the input field
Step
Legal interval value i.e. if step = 2 possible value for the are all number in range of max and min with value%2 = 0
Value
This is default value associated with input field.
Placeholder(value=[text])
Hint text associated with input field
<
html
>
<
head
>
<script
type
="text/javascript">
function a() {
alert(document.getElementById(
"aa"
).value);
}
</script>
</
head
>
<
body
>
<div>
If your browser support range input type you will see a silder
</div>
<br
/>
<input
id
="aa"
type
="range"
min
="-10"
value
="0"
max
="200"
/>
<input
type
="submit"
onclick
="a();"
/>
<br
/>
<div
style
="
padding-top
: 15px;">
To view how attribute step work set min=0 and max=20 and step=5 and see how slider
move.
</div>
</
body
>
</
html
>
Try it yourself
<< Previous
Next >>
Add Comment
Comment
Name
(Required)
E-mail
(Privacy assured)
(Required)
Subscribe to this site by email
Poll of the Day
Q.
Best Smart Mobile Phone in market?
I-Phone
Samsung
Nokia
Others
Related Contents
Online Test Papers
ASP.NET
JavaScript
LINQ
SharePoint
Silverlight
SQL
Related Tutorials
HTML 5 Tutorial
SharePoint Best Practice
How to add ribbon button in SharePoint list and library
List Join operation in SharePoint 2007 / 2010
ASP.NET 4.0 Tutorials
Fun @ Work
Keep smiling always
Developer Vs Tester
There are solutions, even to the hardest problems
Corporate Cartoons
Golden words of steve jobs
Top Blogs
SharePoint 2010 Modal Dialog
How to call webservice using Ajax or JavaScript
Microsoft OLE DB Provider for ODBC Drivers error 80004005
Using SQL SWITCH CASE Statement
Validation of viewstate MAC failed. If this application is hosted...
Creating a Windows Service in C#
Using InstallUtil to install/uninstall service
Each GROUP BY expression must contain at least one column that is not an outer reference
How to add ribbon button in SharePoint list and library
Client side onselectedindexchanged or onchange event in RadioButtonList
Arithmetic overflow error
Pass Data from Parent window to ChildWindow
Silverlight: ListBox with CheckBox
Tablix headers not repeating in SSRS 2008
LINQ to SQL Best Practice
Calling JavaScript function from C#
The contract name could not be found in the list of contracts implemented by the service
Like To Connect With US
x