1、获得某个对象的值
<input type="hidden" id="ad_type" name="ad_type" value="1">
$('#ad_type').val(); 结果为1
2、 <input type="radio" name="ad_type" id="type1" checked="checked" value="1" />图片
<input type="radio" name="ad_type" id="type2" value="2" />文字
<input type="radio" name="ad_type" id="type3" value="3" />flash
<input type="text" name="ad_path" id="ad_path" size="50" maxlength="20"/>
触发radio的click事件
$('input[name=ad_type]').click(funciotn(){
//$("input[type='radio']:checked").val(); // 获得radio被选中的值
//$('#ad_path').show(); //显示input标签
//$('#ad_path').hide(); //隐藏input标签
//如果<input type="text" name="ad_path" id="ad_path" size="50" maxlength="20"/>值是undefined,jquery代码应为
$('#ad_path').val()==undefined;
});