try the jquery on method