1

The HTML code for my input range looks like this:

<input class="sliderNoTextbox" id="ti_monatlich" type="range" name="ti_monatlich" data-theme="d">

it looked like this:

enter image description here

based on this answer I added following css:

.sliderNoTextbox.ui-slider-input {
    display : none !important;
}

now it looks like this:

enter image description here

Where before was a textbox, now is a blank space. I just can't figure out how to get rid of that space.. can anyone help me out?

The blank space only appears on Android devices

UPDATE

I have created a completely empty page, with only the slider, still the blank space appears. It does not seem to depend on any other elements:

<body>
    <input class="sliderNoTextbox" id="ti_monatlich" type="range" name="ti_monatlich" data-theme="d">
</body>

Using jQM 1.3.2 with jQuery 1.8.3

Community
  • 1
  • 1
Daniel
  • 20,420
  • 10
  • 92
  • 149

1 Answers1

0
Try this:

<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
<style>.ui-slider-input {
    display : none !important;
}
</style>
<div data-role="page">
    <div data-role="content">
        <label for="slider" class="ui-hidden-accessible">Input slider:</label>
        <input type="range" name="slider" id="@(Model.QuestionNo)_slider" value="25" min="0" max="100" />
    </div>
</div>

Ref link: http://jsfiddle.net/EWQ6n/2/

Systematix Infotech
  • 2,345
  • 1
  • 14
  • 31