我有一个滑块我已经在我的网站上实施,并希望其他网页上的链接上点击时降落在一个特定的值:的Javascript传递参数当链接点击另一页
这里是剧本和参数我想改变:
$("#screeningSlider").ionRangeSlider({
hide_min_max: true,
keyboard: true,
from: 20,
min: 1,
max: 2000,
step: 0,
grid_num: 4,
prettify_separator: ",",
postfix: " Units",
max_postfix: "+",
force_edges: true,
});
所以当另一个页面上,我想点击一个按钮,让我登陆这个页面上,但是从参数为10,而不是默认以上值。这应该只发生在从特定按钮中进行选择时。
这里是我的网站具有滑块:http://therrd.com/screening.html#tenant-Screening
你可以分享你已经尝试的代码? –
您可能只需传递一个URL参数,然后使用JavaScript来相应地获取和设置它。 – Zze