问题标签 [jquery-mobile-slider]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
4049 浏览

javascript - 动态插入的 JQuery Mobile 滑块

我正在动态插入滑块。问题是当我动态插入它们时,它们没有 jquerymobile 的主题。这是我使用的代码:

在此处输入图像描述

如果我使用 JQueryMobile 的方法,那么屏幕上会出现两个滑块:

在此处输入图像描述

我究竟做错了什么?当我不使用这些方法时,没有主题,当我使用它时,我有两个滑块而不是一个...谢谢!

0 投票
2 回答
144 浏览

jquery - 未应用 JQuery Mobile

我在使用 JQueryMobile 时遇到了一些麻烦,因为我想实现一些小部件,但小部件的主题和颜色没有很好地实现。

这是一张显示正在发生的事情的照片: 在此处输入图像描述

例如,正确的小部件是:

在此处输入图像描述

如果我动态添加 jquerymobile 小部件,则主题添加不充分,但如果 html 已经在文件中(未使用 javascript 动态添加),则主题看起来不错。这是我用来添加小部件的代码:

谢谢!

0 投票
1 回答
588 浏览

jquery-mobile - 在 jQuery Mobile 中页面更改后从滑块事件接收事件

$.mobile.changePage()在 PhoneGap 应用程序中,我通过该函数导航到 html 页面。

目标页面包含一个滑块输入元素。

我想在更改滑块后计算所选值,但我不知道如何接收事件。

我查看了 jQM 演示页面的示例,但它不起作用。

这是包含滑块元素的目标页面的代码:

难道是我必须将接收脚本放在其他地方吗?因为它似乎没有被执行。

谢谢你,马克斯

0 投票
1 回答
8328 浏览

javascript - 在 Jquerymobile 中获取滑块的值?

我无法让它在 jquerymobile 中工作我在 weightvalue 变量上得到空值:

JS

HTML

0 投票
1 回答
250 浏览

javascript - jQuery Mobile Slider Steps not behaving when numbers are large

I have a slider that is from 1 to 5 million, somehow jquery mobile optimizes the stepping to 50000 when using the slider despite me specifying the step to 1000. is there anyway to force override this behaviour

demo here:

http://jsfiddle.net/LSGAk/3/

0 投票
2 回答
1633 浏览

javascript - JQuery Mobile slider string instead of number

I´ve implemented a jQuery Mobile Slider in my app. This is the code

JS

This slider comes with a input field where the current Value of the slider is shown, e.g 1,2,3,4,5. I want to have strings instead of number like: 1 = bad, 2 = okay, 3 = better... I tried it with the onChange event but it doesn´t work.

I hope someone here can help?

0 投票
1 回答
106 浏览

jquery-mobile - 如何在运行时修改 jQueryMobile 滑块的最小值和最大值?

所以我的 HTML 文档中有一个滑块:

我想在运行时修改最小和最大范围,但我找不到任何有关如何执行此操作的文档。

如果这很明显,我深表歉意,但我真的在为这个看似显而易见的任务而苦苦挣扎。谢谢!

0 投票
1 回答
1088 浏览

jquery - 如何向 jquery 移动滑块添加刻度线和标签?

在我的水平滑块上,我想定期显示刻度线,例如 0、20、40、60、80 和 100。我还想将这些值显示为滑块下方的标签。我知道使用 jquery UI 滑块可以轻松完成,但我使用的是 Jquery 移动滑块,但没有找到任何选项。

0 投票
1 回答
58 浏览

jquery-mobile - 有没有办法在 jQuery Mobile 1.4.5 中取消设置滑块的值?

我正在使用以下标记来显示一个滑块,其值显示在其按钮上:

首次显示滑块时,滑块没有附加值。只有在我移动按钮或以编程方式设置值之前,滑块才会改变。例如,

有没有办法以编程方式将值重置回其原始状态(没有值)?如果我将其设置为nullor '',则该值变为 1(分钟)。如果我将其设置为 6,则该值变为 5(最大值)。但是我该如何取消它呢?

0 投票
2 回答
208 浏览

javascript - jQuery Mobile range Slider 输入框对齐

如 jQuery 移动演示页面中所示,我无法实现 rangeslider 小部件。但是,如果我复制完全相同的代码,它在那里看起来很完美:

输入框完全移位,如jsFiddle 所示

我做错了什么?为什么插入与演示页面中相同的滑块如此困难?