【问题标题】:osclass jquery doesnt work correctosclass jquery 不能正常工作
【发布时间】: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: "&nbsp;$", skin: "plastic" });
</script>

</div>

谢谢

【问题讨论】:

  • 网页浏览器控制台有错误吗?
  • 网络标签也没有错误?
  • 这个错误 //Uncaught TypeError: Cannot read property 'parentNode' of null // 但这是另一个 jquery
  • 但有时当一个错误发生时,javascript中的其余代码不会被处理。
  • 你觉得输入标签怎么样?

标签: jquery osclass


【解决方案1】:

您没有在您的页面和/或 jqueryUI 库中包含 jquery.slider.js

【讨论】:

  • 谢谢,但是这个文件是给价格选择器的
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2011-04-16
  • 2016-07-01
  • 2011-12-20
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多