wood burning stoves 2.0*
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
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: 1393
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: 60782
    
  65

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: 1393
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: 60782
    
  65

An alert isn't a valid debugging tool.

What's Firebug say?
Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1393
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: 60782
    
  65

I have no idea. I use it in Firefox. You shouldn't let an IDE constrict your environment.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Split Function for jQuery Results
 
Similar Threads
How To Reference a Dynamic DOM Object From JS
Passing JS Array to java using jquery
Unable to understand a code in a function?
jquery - code review
Drag and drop fail when called via ajax