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();
});