C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Splitting str values using js


Posted Date: 30 Aug 2008      Total Responses: 1

Posted By: anand kumar       Member Level: Silver     Points: 1


Hi

Can anybody help me regarind issue like

var str = "123#1456,145#165,176#198";
showing above str values i needed to split those str values display into runtime table in descending order.i need this splitting in javascript


Regards
ANAND




Responses

Author: Rajesh(March-2008 Winner)    30 Aug 2008Member Level: GoldRating:     Points: 5
The split() method is used to split a string into an array of strings.
Syntax

stringObject.split(separator, howmany)


Parameter Description
separator Required. Specifies the character, regular expression, or substring that is used to determine where to split the string
howmany Optional. Specify how many times split should occur. Must be a numeric value


<script type="text/javascript">

var str="afdsg fgfg";

document.write(str.split(" ") + "<br />");
document.write(str.split("") + "<br />");
document.write(str.split(" ",3));

</script>



Post Reply
You must Sign In to post a response.
Next : dropdownlists
Previous : tables
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

SPOC

Contact Us    Privacy Policy    Terms Of Use