基本編
テキストボックスの文字を小文字や大文字に変える
<html>
<body>
<input type="button" value="大文字" onclick="document.all.txt1.value=document.all.txt1.value.toUpperCase()">
<input type="button" value="小文字" onclick="document.all.txt1.value=document.all.txt1.value.toLowerCase()">
<input id="txt1" type="text" value="abcde">
</body>
</html>
|
サンプル
|
スポンサードリンク
|