HTML页面
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
< div class = "col-xs-9" id = "search_songs_a" >
< table >
< tbody >
< tr >
< th >钢琴曲名称:</ th >
< td >< input type = "text" name = "info[gqq_name]" id = "gqq_name" style = "width:200px;" /></ td >
< th style = "padding-left:10px;" >演奏者:</ th >
< td >< input type = "text" name = "info[gqq_player]" id = "gqq_player" style = "width:200px;" /></ td >
</ tr >
</ tbody >
</ table >
lt;/div>
< div class = "col-xs-9" id = "search_songs_b" >
< table >
< tbody >
< tr >
< th >属 性:</ th >
< td >
< span >< input type = "radio" name = "info[gqq_shuxing]" value = "不限" checked = "checked" />< label >不限</ label ></ span >
< span >< input type = "radio" name = "info[gqq_shuxing]" value = "流行钢琴曲" />< label >流行钢琴曲</ label ></ span >
< span >< input type = "radio" name = "info[gqq_shuxing]" value = "古典钢琴曲" />< label >古典钢琴曲</ label ></ span >
< span >< input type = "radio" name = "info[gqq_shuxing]" value = "爵士钢琴曲" />< label >爵士钢琴曲</ label ></ span >
< span >< input type = "radio" name = "info[gqq_shuxing]" value = "钢琴练习曲" />< label >钢琴练习曲</ label ></ span >
</ td >
</ tr >
</ tbody >
</ table >
lt;/div>
|
js页面
1
2
3
4
5
6
7
8
|
//清空钢琴曲搜索条件
function clearsongs()
{
$( "#search_songs_a :input" ).each( function () {
$( this ).val( "" );
});
$( "input[name='info[gqq_shuxing]'][value='不限']" ).attr( "checked" , true );
}
|