首页  >  文章  >  后端开发  >  php+jquery做onchange提交动作的有关问题,请人帮忙看看

php+jquery做onchange提交动作的有关问题,请人帮忙看看

WBOY
WBOY原创
2016-06-13 12:39:581162浏览

php+jquery做onchange提交动作的问题,请人帮忙看看
我有个列表出来的结果,每列都有个onchange的动作,可是只有第一行的onchange可以操作,其他都没有反应,不知道怎么回事。

<br>
 <br>
	include("../config.inc.php");<br>
	<br>
	//医生排班列表开始<br>
	$strDoctorTime = "";<br>
	if( isset($_REQUEST['Action']) && !empty($_REQUEST['Action']) && ($_REQUEST['Action'] == "setdoctortime") ){<br>
		<br>
		<br>
		$sqlDoctorTime = "select sid,doctorid,CONVERT(varchar(100), starttime, 20) as starttime,CONVERT(varchar(100), endtime, 120) as endtime,duration,createtime,type,operid,status,visits_counts,original_counts,istrue from gst_scheduling where doctorid = '".$_REQUEST['doctorid']."' ";<br>
		//if ( (isset($_REQUEST['starttime']) && !empty($_REQUEST['starttime'])) && (isset($_REQUEST['endtime']) && !empty($_REQUEST['endtime']))  ) {<br>
		//	$sqlDoctorTime .= " ";<br>
		//}<br>
		$sqlDoctorTime .= " order by sid desc";<br>
<br>
		$resDoctorTime = $SqlDB->Query($sqlDoctorTime);<br>
<br>
		$arrDoctorTime = $SqlDB->getRows($resDoctorTime);<br>
		<br>
		<br>
		for($i=0; $i<count></count>
			$strSelectStatus = ""; //初始号源下拉值<br>
			$strSelectStatus  = "<select>";<br>
			$strSelectStatus .= "<option></option>
			if(trim($arrDoctorTime[$i]['original_counts']) == "1") $strSelectStatus .=  ' selected';<br>
			$strSelectStatus .= ">1";<br>
			$strSelectStatus .= "<option></option>
			if(trim($arrDoctorTime[$i]['original_counts']) == "2") $strSelectStatus .=  ' selected';<br>
			$strSelectStatus .= ">2";<br>
			$strSelectStatus .= "<option></option>
			if(trim($arrDoctorTime[$i]['original_counts']) == "3") $strSelectStatus .=  ' selected';<br>
			$strSelectStatus .= ">3";<br>
			$strSelectStatus .= "<option></option>
			if(trim($arrDoctorTime[$i]['original_counts']) == "4") $strSelectStatus .=  ' selected';<br>
			$strSelectStatus .= ">4";<br>
			$strSelectStatus .= "<option></option>
			if(trim($arrDoctorTime[$i]['original_counts']) == "5") $strSelectStatus .=  ' selected';<br>
			$strSelectStatus .= ">5"; <div class="clear">
                 
              
              
        
            </div></select>
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn