top custom html 3Agan2 Master PHP cardinal butuh bantuan nih Script ane: ini playscript pake ajax : function getmail() { var opgrp = $("#opgrp").val(); $.ajax({ type: "POST", dataType: "html", url: "<?=base_url() ?>index.php/opslogs/getmail", data: "opgrp="+opgrp, success: function(msg){ if(msg == ''){ $("select#opeml").html('<option value=""></option>'); }else{ $("select#opeml").html(msg); } } }); } function getmail() { $opgrp = $this->input->post('opgrp'); $csmail = $this->db->query("SELECT crisp mail_to,mail_t FROM opsmail Where mail_t='$opgrp' ORDER BY mail_to"); foreach ($csmail->result() as $cxmail) { echo '<option value='.$cxmail->mail_t.'>'.$cxmail->mail_to.'</option>'; } } masalahnya gan opeml kan nama id untuk select, pas opeml cardinal rubah jadi signaling hasil querynya ga bisa muncul.... mohon bantuannya gan :malusbottom custom html 1
Google
Bookmark and Share

0 komentar:

Posting Komentar