var redlineExists = ($('#redlineSelect').size() > 0) if you want a
true boolean, I guess...

On May 23, 10:31 am, "Andy Matthews" <[EMAIL PROTECTED]>
wrote:
> I've got some multiple dropdowns that I'm trying to conditionalize. Our
> designers can select one (or both) of two sets of code. I'd like to
> conditionalize my jQuery code so that if the redline dropdowns exist, I can
> run that code, or if the inventory dropdowns exist, I can run THAT code.
>
> Is there a way of assigning a boolean value using a jQuery call? Something
> like this maybe?
>
> var redlineExists = $('#redlineSelect');
>
> Where if the element is there, then redlineExists would be true, and false
> if it did not?
>
> How might I do that?
>
> ____________________________________
>
> Andy Matthews
> Senior Coldfusion Developer
>
> Office:  877.707.5467 x747
> Direct:  615.627.9747
> Fax:  615.467.6249
> [EMAIL PROTECTED]<http://www.dealerskins.com/>
>
>  dealerskinslogo.bmp
> 6KDownload

Reply via email to