【发布时间】:2014-08-25 17:49:13
【问题描述】:
我有一个广播组,它动态地进入我的页面。我能够使用 php 成功禁用任何收音机,但我想在禁用的收音机标签上添加 text-decoration: 的 css 属性。这是代码:
<div class="form-item form-type-radio form-item-example-pane-time-slot-1">
<input type="radio" id="edit-example-pane-time-slot-1-11" name="example_pane[time_slot_1]" value="11" class="form-radio">
<label class="option" for="edit-example-pane-time-slot-1-11">11 - 12 pm </label>
</div>
如何使用 jquery ?我的 jquery 代码是这样的:
if ($('#edit-example-pane-time-slot-1-11').attr('disabled',true))
{
$(this).css('text-decoration', 'line-through');
}
它不工作。
【问题讨论】:
标签: javascript php jquery css drupal-7