i'm working with drupal and the current version of jQuery for drupal is the 1.4, but in the current HTML the developer used the ON(). function, how can i adapt this for 1.4?
$('body').on('click.button.data-api', '[data-toggle^=button]', function (e) {
var $btn = $(e.target)
if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
$btn.button('toggle')