yanmin

            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            16 隨筆 :: 1 文章 :: 9 評(píng)論 :: 0 Trackbacks
          function AddItem(setter,dropdownValue){
          ??// obtain the dropdownlist control
          ??var ct1 = null;
          ??if (setter == "OperateDoctor1"){
          ???ctl = document.OTRequestForm.ddOperateDoctor1Subspecialty;
          ??}
          ??if (setter == "OperateDoctor2"){
          ???ctl = document.OTRequestForm.ddOperateDoctor2Subspecialty;
          ??}
          ??if (setter == "RequestDoctor"){
          ???ctl = document.OTRequestForm.ddRequestDoctorSubspecialty;
          ??}
          ??if (ctl != null){
          ???clearDropdown(ctl);
          ??}
          ??// get the text and value
          ??var subSpecInfo =? dropdownValue.split("&&");
          ??for (i=0; i<subSpecInfo.length; i++){
          ???// create a new option
          ???var newOpt = document.createElement("option");
          ???var subSpec = subSpecInfo[i].split("|");
          ???newOpt.text = subSpec[1];
          ???newOpt.value = subSpec[0];
          ???ctl.add(newOpt);
          ??}
          ???
          }
          posted on 2006-09-01 17:11 yanmin 閱讀(536) 評(píng)論(0)  編輯  收藏

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
          博客園   IT新聞   Chat2DB   C++博客   博問  
           
          主站蜘蛛池模板: 湘阴县| 太原市| 大兴区| 黄浦区| 新巴尔虎左旗| 隆子县| 台前县| 通辽市| 衡阳县| 东乡族自治县| 商丘市| 安平县| 南通市| 琼海市| 扶风县| 民乐县| 赤峰市| 额尔古纳市| 米脂县| 玛纳斯县| 葵青区| 伊吾县| 达日县| 金昌市| 恩施市| 廊坊市| 子长县| 易门县| 凌源市| 班玛县| 福州市| 亚东县| 乌兰浩特市| 永年县| 驻马店市| 温宿县| 延津县| 阳山县| 高陵县| 敖汉旗| 德清县|