From c08e15e1f616ae8044700afac4ed24209f6a07a2 Mon Sep 17 00:00:00 2001 From: anasAsh Date: Tue, 2 Apr 2013 11:53:29 +0300 Subject: [PATCH] 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. --- js/simple-slider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/simple-slider.js b/js/simple-slider.js index f114f90..46c5f3f 100644 --- a/js/simple-slider.js +++ b/js/simple-slider.js @@ -28,7 +28,7 @@ var __slice = [].slice, if (this.settings.theme) { this.settings.classSuffix = "-" + this.settings.theme; } - this.input.hide(); + this.input.css('visibility', 'hidden'); this.slider = $("
").addClass("slider" + (this.settings.classSuffix || "")).css({ position: "relative", userSelect: "none",