2013年8月13日 星期二

html-combo select-option

<select
onfocus="
oldValue=this.value;
if (''){
_combo(this.id,'','','');
}
"
onclick="newValue=this.value; if(oldValue!=newValue){hadEdit=1;}"
style="width:10em;padding:0px;margin-left:0px;"
title=""
name="SALES_ORDER_HEAD.COMPANY"
id="SALES_ORDER_HEAD.COMPANY"    
>
<option value=''></optin><!--20131104-->
<option value='T'>Top Level</optin><!--20131104-->
<option value='I'>Integrity</optin><!--20131104-->
</select>







http://www.jr.pl/www.quirksmode.org/js/options.html

html-select html-option
<html xmlns="http://www.w3.org/1999/xhtml">
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<script>
function use_status_cur(){
createXHR();
xmlHttp.open('GET','use_status.php?m_sql=SELECT status2,datetimer FROM status where module=\'CUR\'',true);
xmlHttp.onreadystatechange=function()
{
if (xmlHttp.readyState==4)
{
if (xmlHttp.status == 200)
{
alert(xmlHttp.responseText);
var status_cur = xmlHttp.responseXML;
var obj_field=document.getElementById('cur');
var s = xmlHttp.responseXML;
var _reccount = s.getElementsByTagName("reccount")[0].childNodes[0].nodeValue ;

for (iix=0; iix<=_reccount; iix++)
{
variable_cur=s.getElementsByTagName('status2')[iix].childNodes[0].nodeValue ;
var option = new Option(variable_cur,variable_cur);
cur.options[iix] = option;
}
}
}
};
xmlHttp.send(null);}
</script>
<body>
 <select name="cur" id="cur"></select>
</body>
</html>




<p>
<label for="ID">CaptioN</label>
<select
onMouseDown="return true;"
name="NamE"
id="ID"
onclick="$(this).select();"
ReaDOnlY
ClasS
OnKeYPresS
onBlur="ONBluR();"
style=" font-size: 13px; margin-left: 10px;display:DisplaY; "
title="TitlE"
>
<option value="" ></option>
</select>
</p>



<select id="permission" name="permission">
<option value=""></option>
<option value="apple">apple</option>
<option value="bananna">bananna</option>
<option value="cat">cat</option>
<option value="dog ">dog</option>
</select>


_refreshv('permission',values[0])



沒有留言:

張貼留言