How to use jQuery Select 2 in dropdown - Kvcodes
X

Congrats, You are Subscribed to Receive Updates.

How to use jQuery Select 2 in dropdown


How to use jQuery Select 2 in dropdown?

Step 1: Download relevant jQuery Select 2 files from jquery.com

Step2: Place the jQuery file in includes/page/footer.inc

Step3: Place the following code in company/0/js_cache/utils.js

Line No: 148

$.fn.select2.amd.require([
	"select2/core",
	"select2/utils",
	"select2/compat/matcher"
	], function (Select2, Utils, oldMatcher) {
		var $basicSingle = $(".js-example-basic-single");
		$.fn.select2.defaults.set("width", "100%");
		$basicSingle.select2();
	}
);

NewQuotation NewQuotation

commenter

About Suresh Senthatti

3 comments

  1. commenter

    How can i disable input or change some objects in customer invoice? such as:
    sales_types_list_row
    price
    payment_terms_list_cells
    Amount
    Shipping Cost
    And dont allow user to input or change these?

  2. commenter

    i m unable to use jquery in dropdown in Fa.what should i do ?

Comment Below

Your email address will not be published. Required fields are marked *

*

Current ye@r *

Menu

Sidebar

Subscribe E-mail Updates

Congrats, You are Subscribed to Receive Updates.

Advertisement

Category Posts