我正在使用jquery.treeview.js。 我需要在加載頁面時突出顯示節點背景顏色。 在點擊我能夠突出背景顏色和字體等使用jquery高亮頁面加載jquerytreeview中的默認節點
$("a").css("backgroundColor", "");
$("a").css("font-weight", "");
$(this).css("backgroundColor", "grey");
$(this).css("font-weight", "bold");
$.cookie("url", $(this));
現在我堅持一個cookie該對象和我能夠讀取相同的,但不能因爲說有應用CSS沒有這樣的財產。
$.cookie("url").css("backgroundColor", "grey");
爲什麼我沒有從cookie中獲取jQuery對象?
警報(this.id)返回空 警報($(本).ID)返回undefined – 2013-03-15 13:58:17