I am making unlimited divs using php and below eac div there is a link that says something like respond, But if they are not logged and they click on respond the div is blocked out using blockui. So I need to pass the id of the div to be blocked to this function so that the div will be blocked for a second or two with a message.
Thanks On Apr 2, 12:47 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote: > Tom, what exactly are you trying to do? You have an anchor click > handler that adds a click handler to some other element (BlockLogin1) > which then blocks some other element (blockMe)? What dynamic divs are > you referring to? > > > Thanks but it doesnt seem to work. I am really stuck on how to do > > this. I have tried everything I can think of. Has anyone ever done > > anything like this before? > > > On Apr 1, 8:41 pm, Kush Murod <[EMAIL PROTECTED]> wrote: > > > Hi Tom, > > > > I'd normally do this, not sure if it is correct way of doing things but > > > it works for me > > > If id you are passing is someID to BlockLog. notice this '#'+ > > > ... > > > > $('#'+someID).click(function() { > > > > .. > > > Give it a try > > > --Kush > > > > Tom Shafer wrote: > > > > I am trying to select different divs, each is given a unique id > > > > > and im using this to apply a effect to it > > > > function BlockLog(id) { > > > > $(id).click(function() { > > > > $('#blockMe').unblock().block('<h1>Processing...</h1>', > > > > { border: '3px solid #a00' }); > > > > }); > > > > } > > > > > with this to call it > > > > <a href="#" onClick="return BlockLog('BlockLogin1')">Your Turn</a> > > > > > with a div like this > > > > > <div id="blockMe">test</div>