Heim  >  Artikel  >  Backend-Entwicklung  >  php+jquery做onchange提交动作的有关问题,请人帮忙看看

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

WBOY
WBOYOriginal
2016-06-13 12:39:581162Durchsuche

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>
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn