Re: [jQuery] Unexpected append behavior

2009-12-10 Thread Lukas Pitschl | Dressy Vagabonds
Hi Charlie, If you check your code, you'll see that you're not quoting your stateName value, hence the html code for your North Carolina option looks like this. option value=North CarolinaNC/option what you want though, is to use quotes with the value so the output looks like this option

[jQuery] Re: Jquery tablesorter problem

2009-01-12 Thread Lukas Pitschl | Dressy Vagabonds
you shouldn't use .length on a jQuery object, since that always returns 1 afaik. Use .size() instead. If your alert then still reports 1 you've selected the table correctly using jQuery, else you have to check your id. also your example implies, that the serverIdPrefix is not used. Check

[jQuery] Re: A better way

2008-11-20 Thread Lukas Pitschl | Dressy Vagabonds
Hi, i think this is a short way to do it, altough i haven't tested it myself. $(a.showHide).click(function() { $(# + $(this).attr('rel')).toggle(); }); It uses the rel attribute of the anchor to find the DIV-Node, and using the toggle method, the div is either hidden or displayed,

[jQuery] Re: simple test if all checked BEGINNER

2008-09-18 Thread Lukas Pitschl | Dressy Vagabonds
Hi Thomas, you could compare the count of all available checkboxes with all checked once. That would look something like this: $(form#form1).submit(function() { var total = $(#form1 [EMAIL PROTECTED]'checkbox']).size() var checked = $(#form1 [EMAIL