input标签中的ID+随机数,JS怎么获得呢? 看代码
<SCRIPT LANGUAGE="JavaScript">
<!--
var input_value='$lfjdb[cityid]';
var input_name='cityid';
var select_type='2';
var file='../do/ajax_select.php';
var DIV_idb='DIV_idb'+Math.random();
var input_idb='input_idb'+Math.random();
document.write("<span id='"+DIV_idb+"'></span>");
document.write("<input type='hidden' id='"+input_idb+"' name='"+input_name+"' size='5' value='"+input_value+"'>");
get_div_S(DIV_idb,DIV_idb,input_idb,select_type,'',input_value);
//-->
</SCRIPT>