Rewrite jQuery on() to click()
I need to rewrite this on function to a click function. with the exact same functionality.

    $('#citybreak_availability_calendar_widget').on('click', '#CB_SearchButton', function() {
    	var iframe = $('#citybreakContent').find('iframe');
    	iframe.attr('src', $(this).attr('href'));
    	$('#menu ul li a[title="Boka rum"]').click();
    	return false;
    });

And this is what I got:

    $('#citybreak_availability_calendar_widget #CB_SearchButton').click(function() {
    	var iframe = $('#citybreakContent').find('iframe');
    	iframe.attr('src', $('#CB_SearchButton').attr('href'));
    	$('#menu ul li a[title="Boka rum"]').click();
    	return false;
    });


Rewrite jQuery on() to click()
===

I need to rewrite this on function to a click function. with the exact same functionality.

    $('#citybreak_availability_calendar_widget').on('click', '#CB_SearchButton', function() {
    	var iframe = $('#citybreakContent').find('iframe');
    	iframe.attr('src', $(this).attr('href'));
    	$('#menu ul li a[title="Boka rum"]').click();
    	return false;
    });

And this is what I got:

    $('#citybreak_availability_calendar_widget #CB_SearchButton').click(function() {
    	var iframe = $('#citybreakContent').find('iframe');
    	iframe.attr('src', $('#CB_SearchButton').attr('href'));
    	$('#menu ul li a[title="Boka rum"]').click();
    	return false;
    });

