+ 1

Convert JQuery snippet to JS

Hello, developers! I would be thankful if you can help me with converting below JQuery Code to Javascript: var $myGroup = $('#myGroup'); $myGroup.on('show','.collapse', function() { $myGroup.find('.collapse.in').collapse('hide'); });

12th Jul 2020, 3:30 PM
Saidmamad Gulomshoev
Saidmamad Gulomshoev - avatar
4 odpowiedzi
0
Any developer?)
12th Jul 2020, 4:06 PM
Saidmamad Gulomshoev
Saidmamad Gulomshoev - avatar
0
“Mimicking Bootstrap’s Collapse with Vanilla Javascript” por David Atchley https://link.medium.com/QPE6h1bu47
12th Jul 2020, 10:18 PM
Erick Ventura
Erick Ventura - avatar
0
Erick Ventura this is not what I want. I want to toggle one of the item which should close other child items also.
13th Jul 2020, 2:22 AM
Saidmamad Gulomshoev
Saidmamad Gulomshoev - avatar
0
$(window).on("load", function(){ $('.save-button').on('click', save_onclick); $('.cancel-button').on('click', cancel_onclick); $('.edit-button').on('click', edit_onclick); $('.save-button, .cancel-button').hide(); }); function edit_onclick(){ setFormMode($(this).closest("form"), 'edit'); } function cancel_onclick(){ setFormMode($(this).closest("form"), 'view'); //TODO: Undo input changes? } function save_onclick(){ setFormMode($(this).closest("form"), 'view'); Please convert Jquary to javascript anyone?
14th Apr 2023, 3:47 AM
Rahul Jay
Rahul Jay - avatar