Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Team,

I was trying this code..as shown below cant trace out what am i doing wrong

rangeslider.js example - JSFiddle[^]

Sorry All for lack of my clarity in question...
What i meant to say was my out put was not same as what i saw in fiddle screen...

What I have tried:

<!DOCTYPE html>


<meta charset="ISO-8859-1">
<title>Insert title here








$("#range-control").rangeslider({
polyfill: false,
onSlideEnd: function(position, value){
console.log('Position', position, 'Value', value);
}
});












<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>

<link rel="stylesheet" type="text/css" href="js/rangeslider.css"> 

<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
 <script src="js/jquery.min.js"></script>
  <script src="js/rangeslider.js"></script>
   <script src="js/rangeslider.min.js"></script>   
<script>
$("#range-control").rangeslider({
    polyfill: false,
    onSlideEnd: function(position, value){
        console.log('Position', position, 'Value', value);
    }
});

</script>
</head>
<body>

  <input id="range-control" type="range" min="0" max="100" step="1" value="0">

</body>
</html>
Posted
Updated 2-Sep-18 17:40pm
v2
Comments
[no name] 2-Sep-18 12:36pm    
Please be so nice and describe what you expect and what you get
Bryian Tan 2-Sep-18 12:38pm    
what doesn't work?
Patrice T 2-Sep-18 13:04pm    
"Why doesnt this code work as expected?"
What is expected, and what it does instead ?
OriginalGriff 2-Sep-18 14:02pm    
"It doesn't work" is probably the most useless problem report we get - and we get it a lot. It tells us nothing about what is happening, or when it happens.
So tell us what it is doing that you didn't expect, or not doing that you did.
Tell us what you did to get it to happen.
Tell us any error messages.

Tell us what you expect that code dump to do!

Use the "Improve question" widget to edit your question and provide better information.
Member 13970230 2-Sep-18 23:44pm    
The out put on my screen is a plain slider control...but what expected is same as shown in fiddle link i shared...control which gets spread with green color...as slide slider...sorry all for lack of clarity earlier

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900