<textarea placeholder="100 ムラサキオカヤドカリ
101 ナキオカヤドカリ" style="width:300px;height:100px"></textarea>
<a href="log/test.log" download="download">TEST</a>
<a href="log/test.log" download>TEST2</a>
<div style="width:300px">
<video controls width="100%">
<source src="img/sec4-3.mp4" type="video/mp4">
</video>
</div>
<iframe
src="https://www.youtube.com/embed/y9OEKT6gTA0"
frameborder="0" allowfullscreen width="400px" height="300px">
</iframe>
埋め込みの例
HTML
<label for="animal_name">動物リスト:</label>
<input list="animal_dlist" id="animal_name" name="animal_name"
oninput="test1('oninput')"
onchange="test1('onchange')"
onblur="test1('onblur')"
onclick="test1('onclick')">
<datalist id="animal_dlist" >
<option value="イモリ">
<option value="カエル">
<option value="サンショウウオ">
<option value="ヒキガエル">
</datalist>
JavaScript
$(()=>{
// リストに追加
$('#animal_dlist').append("<option value='赤猫'>");
});
function clickBtn1(){
let animal_name = $('#animal_name').val();
$('#res').html(animal_name);
}
function test1(str){
$('#res2').append(str + '<br>');
}
<datalist id="animal_dlist" >
<?php
for($i=0; $i<10000; $i++){
echo "<option value='動物テスト{$i}'>";
}
?>
</datalist>
<input list="animal_dlist" id="test1" >
<input list="animal_dlist" id="test2" >
<input list="animal_dlist" id="test3" >
<input list="animal_dlist" id="test4" >
<input list="animal_dlist" id="test5" >
<input list="animal_dlist" id="test6" >
<input list="animal_dlist" id="test7" >