[jQuery] Re: Exists

2008-10-28 Thread joel boonstra
> I have the following: > >   if (subject == '---') { >     if(!$('label[for="Subject",class="Error"]').length) { >       $('#Subject').parent().after(' generated="true" class="Error">Required field'); >     } >   } > > I need to check if a label with for="Subject" and class="Error" > exists: > >

[jQuery] Re: Help with syntax

2008-10-28 Thread joel boonstra
> Hi everyone, I've been playing with jQuery a lot lately but my skills > could use a lot of work. I recently made this small snippet of script > to show and hide tablerows from a link that looks like this: > > 1 > > this will show: > > > etc > > > Javascript: > > $(function(){ >         $('.box

[jQuery] Re: Empty

2008-10-28 Thread joel boonstra
> I have the following on a JQuery Code: > >    $('').appendTo('#Themes') >    .append(subject) >    .append('') >    .append(levels) >    .append('') > > How can I add > >    .append(subject) >    .append('') > > only if subject is not empty and > >    .append(levels) >    .append('') > > only if

[jQuery] Re: Use JSON from .post

2008-10-28 Thread joel boonstra
>  I have an object created using json_encode and via the console.log > entry as suggested, I can see that it is correct.   I have a backend > program that I'm wanting to pass this object to, so that it can do a > json_decode and then process that data.   When I try to pass the > object to it, usi

[jQuery] Re: How to use a custom ajax code in page that was loaded with .load()?

2008-10-13 Thread joel boonstra
On Oct 12, 5:41 pm, ivframes <[EMAIL PROTECTED]> wrote: > I have a page that loads with jquery's .load() function. > However, that page is a form with two custom JS files attached. > When I load it separately, the JS code works. However, when used > with .load(), it does not. > > What I'm missing