は、私はドラッグ可能なclass="item"
を選択したいが、このセレクタが動作していません。誰でもjQueryセレクタを教えてください。
<body>
<div id="contentwrapper">
<div id="contentcolumn">
<div class="innertube" >
<ul class="products">
<li>
<a href="#" class="item"> // i want to select this
<img src="images/shirt1.gif"/>
<div>
<p>Balloon</p>
<p>Price:$25</p>
</div>
</a><!-- more products like this --></li></ul></div></div></div>
<script>
$('.item').draggable(....) // not working
</scipt>
</body>
マークアップにそのクラスの要素はありますか? –
JavascriptとJQueryで何かするつもりなら、FirefoxをFirebugとFireQueryで使う必要があります。 –
@PaulTomblin - またはChrome Console ...(そして、私は大きなFirebugのファンだけど...) –