jQuery(function ($) { //open toggle on button click $('a.open-lomake').on('click', function(event){ $('#lomake3.et_pb_lomake_2 .et_pb_lomake_title').click(); }); });