-
<html><head><script>
function cf09(){
da=document.all;
a=new Array();
a[0]=da("bc-1").value;
a[1]=a[0].split(/\n/);
a[1].sort();
a[1]=a[1].join("\n");
document.getElementById("ac-1").value=a[1];
};
</script></head><body>
<table border="0">
<tr><th> ◯ </th><td>
<table border="1"><tr><th>
<textarea rows="14" cols="45" name="bc-1">
</textarea></th></tr></table>
</td><th> => <br>(整列)<br><input type="button" value="pi" onClick="cf09()"></input></th><td>
<table border="1"><tr><th>
<textarea rows="14" cols="45" id="ac-1">
</textarea></th></tr></table>
</td></tr>
<tr><th> ◯ </th><td>
<table border="1"><tr><th>
<textarea rows="14" cols="45">
</textarea></th></tr></table>
</td><th> ○ </th><td>
<table border="1"><tr><th>
<textarea rows="14" cols="45">
</textarea></th></tr></table>
</td></tr>
<tr><th colspan="2"></th></tr>
</table>
</body></html> -
お勉強、覚え書き