My knowledge of CF is rather limited, but from what I can remember, that code is trying to determine whether the Form variable "Principal" exists (correct me if I'm wrong). My best guess, then, would be:
if( jQuery(":[EMAIL PROTECTED]'Principal']").val() != null ) { // do super cool stuff... } The if condition would pass if a form input named "Principal" exists on the page and it contains *any* value, including an empty string ( "" ). What, may I ask, are you trying to do? On 3/26/07, Rick Faircloth <[EMAIL PROTECTED]> wrote:
Hi, all.. How do I write this CF code: <CFIF IsDefined("Form.Principal")> </CFIF> in js? Rick _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
-- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com
_______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/