范围滑块问题。 [英] The range slider issue.

查看:92
本文介绍了范围滑块问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在Jquery中使用Range滑块,当我拖动Slider时,值将会改变.Sp那里没有问题。我的问题是什么,我在下面有两个文本框当我们拖动滑块时,范围将会改变,并且该值将显示在textbox中。基于该值,我将过滤我的记录。它是怎么回事?任何人解释



谢谢



我的尝试:


我试过使用textbox_textchanged。但是我无法获得值。

解决方案

 <%@     Page  < span class =code-attribute>  语言  =  C#    AutoEventWireup   =   true    CodeFile   =  Page2.aspx.cs   继承  =  Page2   %>  

< !DOCTYPE html >

< < span class =code-leadattribute> html xmlns = http://www.w3.org/1999/xhtml >
< head runat = server < span class =code-keyword>>
< title <温泉n class =code-keyword>> < / title >
< meta charset = utf-8 >
< meta name = viewport content = width = device-width,initial-scale = 1 >
< link rel = 样式表 href = // code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css\">
< link rel = stylesheet href = / resources / demos / style.css >
< script src = https://code.jquery.com/jquery-1.12。 4.js > < / script >
< script src = https://code.jquery.com/ui/1.12.1/jquery-ui.js > < / script >
< script >


(function(){


#slider-range)。slider({
range: true
min: 0
max: 500
值:[ 75 300 ],
slide:function( event ,ui){

Hi,
Am using Range slider in Jquery,When i drag a Slider the value will be change.Sp there is no Problem there.What my issue is ,i have a two text boxes below slider.When we Drag the slider the range will change,and the value will be display in textbox.Based On that values i will filter my records.How it is? Anyone Explain

Thanks

What I have tried:

I tried With the textbox_textchanged .But i cant to get the value.

解决方案

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Page2.aspx.cs" Inherits="Page2" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
  <link rel="stylesheet" href="/resources/demos/style.css">
  <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  <script>


(function () {


("#slider-range").slider({ range: true, min: 0, max: 500, values: [75, 300], slide: function (event, ui) {


这篇关于范围滑块问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆