Skip to content

Commit c08e15e

Browse files
committed
Update simple-slider.js
Jquery hide() uses display:none css, which prevents submitting the input value. anyway, i think developers should use hidden input type with the slider.
1 parent 86caf5a commit c08e15e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/simple-slider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var __slice = [].slice,
2828
if (this.settings.theme) {
2929
this.settings.classSuffix = "-" + this.settings.theme;
3030
}
31-
this.input.hide();
31+
this.input.css('visibility', 'hidden');
3232
this.slider = $("<div>").addClass("slider" + (this.settings.classSuffix || "")).css({
3333
position: "relative",
3434
userSelect: "none",

0 commit comments

Comments
 (0)