I have WordPress theme i added the new select box based on select2 plugin. When i add new menu item before click on Save Menu
button don't apply the select2 jquery code over the select box. But after click on Save Menu
directly applied select2 jquery code over the select box
More info from this image below
The image show the select2 select box before click on Save Menu
button and after click on Save Menu
button
This is my jquery code from js file
$(".bsnselect").select2({
placeholder: "Select ...",
width: '100%',
minimumResultsForSearch: Infinity,
theme: "classic"
});
This code from a php file for enqueue the select2 files
function YPE_bsn_backend() {
wp_enqueue_script( 'select2-js', plugins_url( '/js/select2.min.js', __FILE__ ), array( 'jquery' ), null, true );
}
add_action( 'admin_enqueue_scripts', 'YPE_bsn_backend' );
function YPE_bsn_backend() {
wp_enqueue_style( 'select2-css', plugins_url( '/css/select2.min.css', __FILE__ ) );
}
add_action( 'admin_enqueue_scripts', 'YPE_bsn_backend' );
Firebase Cloud Functions: PubSub, "res.on is not a function"
TypeError: Cannot read properties of undefined (reading 'createMessageComponentCollector')
I need to implement this js in order to fill in different fields on change event of a select field
So I am developing a website where users can write articlesI'm coming across a problem
I've noticed an issue recently with Chrome and Select boxesThe size of the options has got much larger and there appears to be extra padding
I have 2 different table in same page2 table having functionality that dynamically add & remove rows