[jQuery] Re: question.

2008-10-16 Thread GARIL
Excellent! Thank you both. And I apologize. I hit the button too quickly.

[jQuery] Re: question.

2008-10-16 Thread GARIL
I used $(":checkbox").each(function() {this.checked=this.name=="veggies"}) but I'm wondering if there's another way, like using filter perhaps? On Oct 16, 8:06 am, GARIL <[EMAIL PROTECTED]> wrote: > Using jQuery, is there a quick way of setting the &#

[jQuery] [forms] question.

2008-10-16 Thread GARIL
Using jQuery, is there a quick way of setting the 'checked' attribute to true for all the 'veggies' below? Thank you. Banana Avocado Apple Papaya Plum Broccoli Cabbage Radish Squash Cucumber

[jQuery] [jQuery UI]

2008-10-11 Thread GARIL
I'm getting the following error with the html snippet shown below. doc.scrollTop is not a function pTop = doc.scrollTop(), pLeft = doc.scrollLeft(), the above from 'ui,dialog.js' Can anyone help? -- http://www.w3.org/TR/html4/loose.dtd";> http://dev.jquery.com/

[jQuery] Re: grab parameters from function

2008-10-10 Thread GARIL
I guess what I want to do is grab all the parameters of the showIt function on the onclick event (see below) and bind a click event to each matched with the parameters just grabbed. See html code below... --- http://code.jquery.com/jquery-latest.js";> $(document).ready

[jQuery] grab parameters from function

2008-10-09 Thread GARIL
Click me Is it possible to grab the first,second,third parameters of the showIt function above so that I can pass the same parameters to another function? I managed to get the event itself using: $("div.hitarea").next().attr("onclick") but I don't know how to continue...

[jQuery] Re: Jquery and ASP.NET

2008-10-06 Thread GARIL
Definitely. On Oct 5, 1:45 pm, eduardo wrote: > Is possible use JQuery in aspx pages writing with ASp.net 3.5 ?

[jQuery] Re: $("#mydiv").sortable is not a function error

2008-10-05 Thread GARIL
"somediv" should be preceded either by "#" or "." like so... $("#somediv"); or $(".somediv"); On Oct 5, 4:00 pm, AdrianMG <[EMAIL PROTECTED]> wrote: > Hi guys! I was working with jQuery 1.2.6 development and firebug didnt > report me anybug. Now I am trying to move to 1.2.6 production, but >

[jQuery] Re: form select...

2008-10-01 Thread GARIL
I did. Thanks Josh. I modified it in such a way that given an index x I can write: $("#fruits option").get(x).selected = true; And that did it. --- On Oct 1, 3:36 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote: > Did you try my code? It should do what you describe. >

[jQuery] Re: form select...

2008-10-01 Thread GARIL
Thank your for your answers but I don't want to set the value. What I want to happen is to programmatically change the select into: BEFORE AFTER Select your favorite fruit: Select your favorite fruit:

[jQuery] Re: form select...

2008-10-01 Thread GARIL
Select your favorite fruit: Apple Orange Pineapple Banana In the form above how do I programmatically set using jQuery the Pineapple option as the selected default?

[jQuery] Re: form select...

2008-09-29 Thread GARIL
Beautiful! Thank you very much, Alex and BB. On Sep 28, 7:32 am, BB <[EMAIL PROTECTED]> wrote: > $("#fruits option:selected").get(0).index

[jQuery] Re: form select...

2008-09-27 Thread GARIL
Thank you. What's the code if I want the index of the selected item? On Sep 28, 12:53 am, Alex Weber <[EMAIL PROTECTED]> wrote: > $('#fruits').val() > > On Sep 28, 2:12 am, GARIL <[EMAIL PROTECTED]> wrote: > > > How do I use jQuery to determine whi

[jQuery] form select...

2008-09-27 Thread GARIL
How do I use jQuery to determine which item was selected from the forms below? Thank you for the help. Select your favorite fruit: Apple Orange Pineapple Banana Select your favorite fruit: All fruits Some only...

[jQuery] Re: treeController [treeview]

2008-09-24 Thread GARIL
Thanks, Jörn. I finally got my code working. -- On Sep 21, 7:16 am, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > See sample #3:http://jquery.bassistance.de/treeview/demo/ > or here:http://dynamicdrive.com/dynamicindex1/treeview/ > > Jörn > >

[jQuery] [treeview] newbie...

2008-09-21 Thread GARIL
What I'm trying to accomplish with the code below is populate nodes dynamically. Thus when a user clicks on a node, I call the function below. The problem is that when the tree is rendered the + and - images to the left of the node does not appear for the new children. Am I doing something wron

[jQuery] [treeview] newbie...

2008-09-21 Thread GARIL
I have the following code that retrieves data using an ajax get in the following format: $("#"+sid+"_c").remove(); $("#"+sid).find("a").after(""); var children; $.get(setToNewPage("main.aspx")+"?tree=1&sid="+sid, function(data){

[jQuery] treeController [treeview]

2008-09-21 Thread GARIL
I need an example on how to correctly use treeController for the treeview plugin (http://docs.jquery.com/Plugins/Treeview/treeview) Many thanks!