Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

submitting the input values through a form fix #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anasAsh
Copy link

@anasAsh anasAsh commented Apr 2, 2013

Jquery hide() uses display:none css, which prevents submitting the input value. anyway, i think developers should use hidden input type with the slider.

Jquery hide() uses display:none css, which prevents submitting the input value. anyway, i think developers should use hidden input type with the slider.
@@ -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');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not input.attr('type', 'hidden')?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @orymate that changing the input type to hidden would make more sense.
this.input.attr('type', 'hidden'); - https://github.com/loopj/jquery-simple-slider/blob/master/js/simple-slider.js#L32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants