Writing /volume1/Web/Public/dokuwiki/data/log/deprecated/2024-11-15.log failed
文書の過去の版を表示しています。
Writing /volume1/Web/Public/dokuwiki/data/log/deprecated/2024-11-15.log failed
set selected index for dynamic drop-down list
Demo
Test Page
<html> <head> <script type=“text/javascript” src=“./test/js/jquery-1.4.2.js”></script> <script type=“text/javascript”> <!–
function createOption(){
var options = newOptions = { 'red' : 'Red', 'blue' : 'Blue', 'green' : 'Green', 'yellow' : 'Yellow' }; $("#example option").remove(); $.each(options, function(key, val){ $("#example").append($("<option/>").val(key).text(val)); }); $("#example").val("green");
}
$(function(){
createOption();
}); –> </script> </head> <body> <select id=“example”> </select> </body> </html>