【发布时间】:2014-08-19 13:33:39
【问题描述】:
我使用 jQuery 价格选择器。其他页面中的代码有效,但在 osclass 中无效。 osclass中的输入标签将texbox在另一个页面是正常的。两者中的 CSS 和 js 文件均已声明。
<div class="layout-slider" style="width: 100%">
Slider <span style="display: inline-block; width: 400px; padding: 0 5px;"><input id="Slider1" type="slider" name="price" value="30000.5;60000" /></span> in string
</div>
<script type="text/javascript" charset="utf-8">
jQuery("#Slider1").slider({ from: 1000, to: 100000, step: 500, smooth: true, round: 0, dimension: " $", skin: "plastic" });
</script>
</div>
谢谢
【问题讨论】:
-
网页浏览器控制台有错误吗?
-
网络标签也没有错误?
-
这个错误 //Uncaught TypeError: Cannot read property 'parentNode' of null // 但这是另一个 jquery
-
但有时当一个错误发生时,javascript中的其余代码不会被处理。
-
你觉得输入标签怎么样?