Reputation: 1000
How to destroy .rangeinput slider after page rendered.
Upvotes: 0
Views: 95
Reputation: 2082
Enclose the range in the DIV
<div id="myRange">
<input type="range" name="test" min="100" max="300" value="150" />
</div>
<br /><br/><br />
<button id="remove">Remove</button>
And then in the script remove the DIV upon some event eg button click
$(":range").rangeinput();
$("#remove").on('click',function(){$("#myRange").remove();});
Upvotes: 1