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

时间:2023-03-08 22:58:41
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");