🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #50185

Re: 5 wierszy textarea dostep do konkretnego wiersza

#50185
From: fuzjusz
Date: Wed, 28 Jul 2010 11:19
22 lines
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>
Technical Details
Message-ID: <931d08ef-484e-45d3-a1a5-5d5f5a8045f2@m1g2000yqo.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!m1g2000yqo.googlegroups.com!not-for-mail
References: <i2olo5$5sa$1@inews.gazeta.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!m1g2000yqo.googlegroups.com!not-for-mail
From: fuzjusz <buckokamil@gmail.com>
Newsgroups: pl.comp.lang.javascript
Subject: Re: 5 wierszy textarea dostep do konkretnego wiersza
Date: Wed, 28 Jul 2010 04:19:08 -0700 (PDT)
Organization: http://groups.google.com
Lines: 22
Message-ID: <931d08ef-484e-45d3-a1a5-5d5f5a8045f2@m1g2000yqo.googlegroups.com>
References: <i2olo5$5sa$1@inews.gazeta.pl>
NNTP-Posting-Host: 213.184.21.226
Mime-Version: 1.0
X-Trace: posting.google.com 1280315949 12460 127.0.0.1 (28 Jul 2010 11:19:09 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 28 Jul 2010 11:19:09 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: m1g2000yqo.googlegroups.com; posting-host=213.184.21.226;  posting-account=5EYl2AoAAABPQ9nwIbKf_4wfTuCMNlla
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.1.10)  Gecko/20100623 Iceweasel/3.5.10 (like Firefox/3.5.10),gzip(gfe)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit