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