jquert .post outputing dropdown list

satanux

New Member
I have created a dropdown list, which is working well in separate page:
e26Z3.jpg
however, when I use jquery .post to output it in a table in a php page, the contents run out from the dropdown list:
bEDOw.jpg
the jquery that I am using us like this:\[code\]<script>function showestate(){$.post('admin/page/ur/showestate.php',{ zid: document.getElementById('zone').value},function(output){$('#showestate').html(output);}); }showestate();</script> <div id='showestate'> </div>\[/code\]please help! Thanks!the dropdown list is like this:\[code\]<?phpinclude "../../db.php";session_start();?><select name="estate" id="estate" /><?php$sql_sel_estate = "select * from [estate]";$result_sel_estate = mssql_query($sql_sel_estate, $conn);while ($record_sel_estate = mssql_fetch_array($result_sel_estate)){$estateid = $record_sel_estate['estateid'];$estatename = $record_sel_estate['estatename'];$estatenameen = $record_sel_estate['estatenameen'];$estatezoneid = $record_sel_estate['estatezoneid'];$estatecode = $record_sel_estate['estatecode'];?><option value="http://stackoverflow.com/questions/10563464/<?=$estateid?>"><?=$estatenameen?><br></option><?php}?></select>\[/code\]
 
Back
Top