The only way that CFB 2 doesn't complain about a syntax error is if I leave off the +' after propertyID, or
var loginContainer = $('.property_container[id="property_"'+propertyID).find('.login_container'); However, that line doesn't "seem" to be working. I say, it doesn't "seem" to be working because I don't get the expected response, from the site, but don't get any error anywhere, either. I just need to think about this approach a little more, perhaps. Rick -----Original Message----- From: Matt Quackenbush [mailto:quackfu...@gmail.com] Sent: Thursday, December 15, 2011 10:01 PM To: cf-talk Subject: Re: (ot) How would I write this js line? Hard to tell with the jumbled mess that Gmail makes of the code, but it appears you're missing a single quote ( ' ). var loginContainer = $('.property_container[id="property_"'+propertyID+').find('.login_container' ); On Thu, Dec 15, 2011 at 8:35 PM, Rick Faircloth <r...@whitestonemedia.com>wrote: > > var loginContainer = > > $('.property_container[id="property_"+propertyID+').find('.login_container') > ; > > > > The ID of the property_container class div is property_1530. > > I'm trying to find the div with the class "property_container" > (.property_container) > that has the id "property_1530", where 1530 is a variable, propertyID. > > I guess I could just simplify the id to be just the "propetyID" instead > of appending "property_", but why make it easy! :o) > > I've tried every combination I could come up with to make this work, > but just can't get it to do what I want. Maybe my whole approach to this > needs to be reworked, and will, if I can't make this work. > > Clues, anyone? > > Thanks! > > Rick > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349184 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm