1024programmer PHP There is a problem with php+jquery doing onchange submission action, please help me

There is a problem with php+jquery doing onchange submission action, please help me

PHP jQuery onchange

I have a list of results. Each column has an onchange action, but only the onchange in the first row can be operated, and the others have no response. I don’t know what’s going on.

 Query($sqlDoctorTime);  $arrDoctorTime = $SqlDB->getRows($resDoctorTime); for($i=0; $i<count($arrDoctorTime); $i++) { $strSelectStatus = ""; //Initial number source drop-down value $strSelectStatus = "  "; $strSelectStatus .= "1"; $strSelectStatus .= "2"; $strSelectStatus .= "3"; $strSelectStatus .= "4"; $strSelectStatus .= "5"; $strSelectStatus .= "6"; $strSelectStatus .= "7"; $strSelectStatus .= "8"; $strSelectStatus .= "9"; $strSelectStatus .= "10"; $strSelectStatus .= ""; } } //End of doctor schedule list ?>
Start time: (*) Start time: (* )

1Doctor

Start time

End time

Scheduling interval

Initial number source number

Remaining source number

Whether to visit a doctor

category

Operator

Operation

Close();?>

Reply to discussion (solution)

Is the id repeated? Post it Check out the HTML source code.

 
The employee number currently using the system: 0017-Wanhui, exit the system
Doctor scheduling settings
Start time: (*) Start time : (*)

1Doctor

Start time

End time

Scheduling interval

Initial number source number

Number of remaining number sources

Whether to visit a doctor

category

Operator

Operation

131

2013-07-06 17:00:00

2013-07-06 17:30:00

30 minutes

12345678910

5

0

1

0017

Delete

131

2013-07-06 16:30:00

2013-07-06 17:00:00

30 minutes

12345 678 910

6

0

1

0017

Delete

Above, the html has been posted

The id is repeated, of course not!

$(‘#originalcounts’).change can be changed to $(‘.originalcounts’).change

Add an attribute to the original selct class=”originalcounts”

Could you please tell me if it is changed to this, will there be no problem if the ID is repeated?

I have a problem. If the ids of my selects are different, how should I write the attributes in the js below?
$strSelectStatus = “”;

$(‘#originalcounts’).change can be changed to $(‘.originalcounts’).change

Moderator, how should I modify it?

Just bind the event to select
Test example

  ABABAB  

Okay, thank you!

to Moderator: Can you explain to me what the following paragraph means?

 //Asynchronous processing returns data //function ajaxCheckRes(data){ // document.getElementById(innerp).innerHTML = data; //} //Re  Load page/*function getdigshtml() { $.ajax({ type:'POST', url:'customservice.php', data:'', success:function(msg){ $("#digg").html(  msg); } }) }*/

to moderator, a new question has come out. If there are 2 SELECT elements on this page, clicking on any SELECT will trigger .
/option>5678910

5

0

1

0017

Delete

131

2013-07-06 16 :30:00

2013-07-06 17:00:00

30 minutes

12 345678910

6

0

1

0017

Delete

Upstairs, the html has been posted

The id is repeated, of course it won’t work!

$(‘#originalcounts’).change can be changed to $(‘.originalcounts’).change

Add an attribute to the original selct class=”originalcounts”

Could you please tell me if it is changed to this, will there be no problem if the ID is repeated?

I have a problem. If the ids of my selects are different, how should I write the attributes in the js below?
$strSelectStatus = “”;

$(‘#originalcounts’).change can be changed to $(‘.originalcounts’).change

Moderator, how should I modify it?

Just bind the event to select
Test example

  ABABAB  

Okay, thank you!

to Moderator: Can you explain to me what the following paragraph means?

 //Asynchronous processing returns data //function ajaxCheckRes(data){ // document.getElementById(innerp).innerHTML = data; //} //Re  Load page/*function getdigshtml() { $.ajax({ type:'POST', url:'customservice.php', data:'', success:function(msg){ $("#digg").html(  msg); } }) }*/

to moderator, a new question has come out. If there are 2 SELECT elements on this page, clicking on any SELECT will trigger .

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/there-is-a-problem-with-phpjquery-doing-onchange-submission-action-please-help-me/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: 34331943@QQ.com

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索