![]() ![]() ![]() ![]() |
|||||
|
|||||
樓主 芋頭 ![]()
![]() |
我想要判斷textbox的背景顏色,如果是某種顏色,那麼就只能readonly否則就可輸入 但是目前都變成不可輸入 請問我是哪裡有問題嗎?? 謝謝指導 $('div#pl7 :input') .change(function() { if ($(this).bgColor = "#FFFFFF") { $(this).attr('readonly', true); } else { $(this).removeAttr('readonly'); } }).trigger('change');
本篇文章發表於2014-04-23 11:54
|