[jQuery] Getting the highlighted text

2008-02-11 Thread duggoff
I have a textarea and a button that allows me to select some text and apply a span and class to it. What I need to do is select that text later and remove the span and class by clicking on a button. I think I can handle to part that removes the span and class, but I don't know how to get the selec

[jQuery] Re: Selector help for new user please

2007-07-28 Thread duggoff
> > $("div#sidebar2").css('width',160); > $("div#content")css('marginRight', 170); > > } > > On 7/28/07, duggoff <[EMAIL PROTECTED]> wrote: > > > > > > > How would I turn this pseudocode into jquery? > > >

[jQuery] Selector help for new user please

2007-07-28 Thread duggoff
How would I turn this pseudocode into jquery? if div#sidebar2 contains div.plugin { div#sidebar2 width = 160px div#content margin-right = 170px } I've been at this for a couple hours and I can't figure it out, so any help is really appreciated. Thanks, Doug

[jQuery] Re: Ajax .load confusion

2007-04-18 Thread duggoff
]" <[EMAIL PROTECTED]> wrote: > $_GET is just an array. I generally add a dbug function in PHP like > so: > > function dbug($var) > { > print "" . print_r($var) . ""; > > } > > Then just call dbug($_GET); anywhere you want to see the nam

[jQuery] Re: Ajax .load confusion

2007-04-18 Thread duggoff
t;:"NewCourse"}); returned value is -1 (didn't get the Title:Coursename pair from $_GET) I wish I understood $_GET better. Is there a way that I can watch the value of $_GET while I'm debugging? On Apr 18, 1:19 pm, Scott Sauyet <[EMAIL PROTECTED]> wrote: > duggo

[jQuery] Ajax .load confusion

2007-04-18 Thread duggoff
I've gone through the tutorial for Quick and Dirty Ajax (http:// 15daysofjquery.com/quick-and-dirty-ajax/14/) and I'm having a problem. I have a php file that queries a database and returns a populated table. If I call it from my browser like this: camp_table.php? Title=Campname it get a web page