I have a button on a page with a class attached to it (several buttons actually) shouldn't I be able to attach a jQuery click event to the buttons using a class as a selector:
$(".editPathway").click(function(){ var x = $(this).data("id"); $('#pathEditFrm').jqm({ modal:true, ajax:'index.cfm?action=loadPathEdit&id=' + x + '&nolayout', closeOnEsc: true }).jqmShow(); }); a variation on this code fires just fine from an ID selector.. but won't fire at all from a class. Thanks in advance -- -- Scott Stewart Adobe Certified Instructor, ColdFusion 8 & 9 Adobe Certified Expert, ColdFusion 8 & 9 Blog: http://www.sstwebworks.com Email: webmas...@sstwebworks.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:360272 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm