要写这段代码的时候,完全想不起来怎么写,还是看了以前的代码,才想起来。
$(function(){ var str='<s:property value="#request.aaa.aaa"/>'; $(".values option[value='"+str+"']").attr("selected","selected"); if($(".values option:selected").val()==1){ $(".hideAndShow").hide(); } });
要写这段代码的时候,完全想不起来怎么写,还是看了以前的代码,才想起来。
$(function(){ var str='<s:property value="#request.aaa.aaa"/>'; $(".values option[value='"+str+"']").attr("selected","selected"); if($(".values option:selected").val()==1){ $(".hideAndShow").hide(); } });