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>