js 清空某个div中的input标签值

HTML页面

 
钢琴曲名称: 演奏者:
属     性:



js页面

//清空钢琴曲搜索条件
function clearsongs()
{
	$("#search_songs_a :input").each(function () {
        $(this).val("");
		});
	$("input[name='info[gqq_shuxing]'][value='不限']").attr("checked",true); 
}


你可能感兴趣的:(js应用)