Thread View: pl.comp.lang.javascript
2 messages
2 total messages
Started by zlotowinfo
Wed, 28 Jul 2010 07:20
5 wierszy textarea dostep do konkretnego wiersza
Author: zlotowinfo
Date: Wed, 28 Jul 2010 07:20
Date: Wed, 28 Jul 2010 07:20
2 lines
940 bytes
940 bytes
chciałbym ominąć całą procedurę ponownych obliczeń i zmieniać skryptem tylko 4 i 5 wiersz
Re: 5 wierszy textarea dostep do konkretnego wiersza
Author: fuzjusz
Date: Wed, 28 Jul 2010 11:19
Date: Wed, 28 Jul 2010 11:19
22 lines
1635 bytes
1635 bytes
> i zmieniać skryptem tylko 4 i 5 wiersz
może to będzie pomocne:
<html>
<head>
<script type="text/javascript">
function zmien(){
tbl = document.getElementById("txta").value.split("\n");
if(tbl[3] != null) tbl[3] += "(4)";
if(tbl[4] != null) tbl[4] += "(5)";
document.getElementById("txta").value = tbl.join("\n");
}
</script>
</head>
<body>
<textarea id="txta" rows="6"></textarea>
<input type="button" value="zm" onclick="zmien();"/>
</body>
</html>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads