jquery设置checkbox状态,设置dropdownlist选中值,隐藏某控件,给某控件追加东西

jquery设置checkbox状态 

$("[ID$=chkType]").attr("checked", true);

jquery设置dropdownlist选中值

$("[ID$=ddlSTATUS]").val("Not Submitted");

jquery隐藏某控件

$("[ID$=MEMO]").parent().parent().hide();

jquery给某控件追加Label

$("[ID$=txtText]").parent().prev().prev().append($("[ID$=txtText]").attr("style", "margin-left:20px;")).append("% of money");

 

posted @ 2014-12-19 10:06  emmaKang  阅读(363)  评论(0编辑  收藏  举报