aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Split Function for jQuery Results Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Split Function for jQuery Results" Watch "Split Function for jQuery Results" New topic
Author

Split Function for jQuery Results

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1466
    
    1
The value of qtyofsplits is 1,3 yet the following function returns only one element after the split is done. What am I doing wrong?

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61426
    
  67

Steve Dyke wrote:The value of qtyofsplits is 1,3

Have you actually checked the value of $('#qtyofsplits').text() to ensure that this is so?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1466
    
    1
Bear Bibeault wrote:
Steve Dyke wrote:The value of qtyofsplits is 1,3

Have you actually checked the value of $('#qtyofsplits').text() to ensure that this is so?


I just did and alert($('#qtyofsplits').text()) returns nothing.
However alert($('#qtyofsplits')) returns 1,3.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61426
    
  67

An alert isn't a valid debugging tool.

What's Firebug say?
Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1466
    
    1
Bear Bibeault wrote:An alert isn't a valid debugging tool.

What's Firebug say?


How can I use Firebug within my Websphere Development Environment(WDSC)?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61426
    
  67

I have no idea. I use it in Firefox. You shouldn't let an IDE constrict your environment.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Split Function for jQuery Results