Second drop-down changes after select first drop down in Joomla XML

by Rakesh Singh   Last Updated September 12, 2017 09:10 AM

I am creating these drop down list in xml for plugin:- category multi-select dropdown, subcategory multi-select dropdown(all data come from database table) .i want when i select the first category drop down then the second drop down list come under the selected category on first drop down. Example:-

please me out how to achieve this.

Given below is table structure.

CREATE TABLE category ( cat_id int(2) NOT NULL auto_increment,

category

varchar(25) NOT NULL default ''

, PRIMARY KEY (cat_id) )

CREATE TABLE subcategory (subcat_id int(3) NOT NULL AUTO_INCREMENT,

cat_id int(2) NOT NULL DEFAULT '0',subcategory varchar(25) NOT NULL DEFAULT '', UNIQUE KEY subcat_id (subcat_id) )



Related Questions


How to remove rel="nofollow" with Joomla Buffer?

Updated May 28, 2017 04:10 AM

How to allow media manager open video files

Updated July 14, 2015 17:04 PM