skip to Main Content

Bootstrap 5.3 events not working in jQuery .on event

This is such an odd issue. I've never had any issues like this before... Here is my dropdown... $('#mydropdown').on('show.bs.dropdown', function() { console.log('hit 1'); }); $(document).on('show.bs.dropdown', '#mydropdown', function() { console.log('hit 2'); }); <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script><script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script> <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"/> <div class="dropdown" id="mydropdown">…

VIEW QUESTION

Reactjs – react-select I want to display and image in the option. But when I select that option, I want the control to display only the text part of that option

this is the options and formatOptionLabel function const brandOptions = films.map((film) => ({ value: film.brand, label: film.brand, })) const formatOptionLabel = ({ value, label, isSelected }) => ( <div style={{ display: 'flex', alignItems: 'center' }}> {isSelected ? null : (…

VIEW QUESTION
Back To Top
Search