[jQuery] conditional events

2008-06-06 Thread daveyourself
I'm trying to trigger an event only when a condition is met, $(document).ready(function() { $('#leftScroll').click(function() { $('#scrollContent') .animate( {

[jQuery] Conditional events

2007-12-21 Thread LeonL
Hello everyone. I've been trying for some time now to make this code to execute ONLY if a variable called edit equals to 1: The code: $(.item_title).editable(operator.php,{ submitdata: {'type': 'title'}, width: 250 });//EOE Does anybody have an