这是一个后续行动这样一个问题:Using javascript:function syntax versus jQuery selector to make Ajax calls如何选择数据-ID和数据在行动jQuery的
我怎么会选择这个片段?
<div data-id="54" data-action="follow-global-id" class="add-to-list">here is my answer</div>
我有值,低于该ID和尝试这个
$('.add-to-list[data-action|="action-follow-global-id"][data-id|=id]').text('here is the things jtjt in the id value');
,但没有骰子。需要与这些在一起。
THX的帮助
我做了测试:http://jsfiddle.net/ambiguous/8jheS/ –
的伟大工程 - THX!必须等待才能接受答案 – timpone
虽然没有它们可能会起作用,但请注意,属性值周围的引号是*强制*。 –