Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How to use "join()" to create a string from an array using JavaScript?
How to use "join()" to create a string from an array using JavaScript?
✍: Guest
"join" concatenates the array elements with a specified seperator between them.
<script type="text/javascript"> var days = ["Sunday","Monday","Tuesday","Wednesday", "Thursday","Friday","Saturday"]; document.write("days:"+days.join(",")); </script>
This produces
days:Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday
2011-07-26, 3386👍, 0💬
Popular Posts:
How can you enable automatic paging in DataGrid ? Following are the points to be done in order to en...
How do you pass control from one JSP page to another? Use the following ways to pass control of a re...
How can I construct preprocessor if expressions which compare strings? You can't do it directly; pre...
Can you explain the fundamentals of “GetGlobalResourceObject ”and “GetLocalResourceObject” function...
Regarding C Coding Given: Line in file Contents 30 int * someIDs, theFirst, *r; 110 someIDs =GetSome...