View Single Post
Old 01-11-2013, 01:19 AM   PM User | #13
rnd me
Senior Coder

 
rnd me's Avatar
 
Join Date: Jun 2007
Location: Urbana
Posts: 3,553
Thanks: 9
Thanked 480 Times in 463 Posts
rnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the rough
ahh. the only browser in which i could redefine element.style was chrome.


you might look into on or delegate instead of the older live method:

http://api.jquery.com/on/


Example: Cancel a form submit action and prevent the event from bubbling up by returning false:

Code:
$("form").on("submit", false)
Example: Cancel only the default action by using .preventDefault().

Code:
$("form").on("submit", function(event) {
  event.preventDefault();
});
Example: Stop submit events from bubbling without preventing form submit, using .stopPropagation().

Code:
$("form").on("submit", function(event) {
  event.stopPropagation();
});
__________________
my site (updated 5/13)
STATS (2013/5) HTML5:90.2% MOB:15.2% IE7:0.5% IE8:8.4% IE9:8.5% IE10:8.5%
rnd me is offline   Reply With Quote