<script>init("<s:property value='invoice.disflag'>");init function(flag){ if(flag == "v") { $("#selectId").get(0).selectIndex =0; }if(flag == "i"){ $("#selectId").get(0).selectIndex =1; }}</srcipt>ip