In my controller.js I’ve function:
$(MyModel.addMyButtonTag).live("click", function () {
MyModel.addRecord();
});
and in my model.js I’ve:
var MyModel = {
addMyButtonTag: "#AddButton",
addRecord: function () {
//Show modal
$(MyModel.addMyButtonTag).modal();
$('#simplemodal-container').css('height', '230px');
$('#simplemodal-container').css('min-height', '0');
}
}
These jqueries work well in IE8-9 but in firefox they don’t work at all. Any suggestion please?
jQuery .live() is deprecated Use .on() instead
for more info take a look here http://api.jquery.com/live/