Demo homepage

From evidyaloka
Revision as of 07:58, 22 December 2022 by Wikividya (Talk | contribs)

Jump to: navigation, search

Evidyaloka Welcomes you!!


var dropDown = new OO.ui.DropdownWidget( { label: 'Select Subject',

               menu: {

items: [ new OO.ui.MenuOptionWidget( { data: 'English', label: 'English' } ),

                               new OO.ui.MenuOptionWidget( {

data: 'Science', label: 'Science' } ),

                               new OO.ui.MenuOptionWidget( {

data: 'Maths', label: 'Maths' } ),

                            ]

} } ), itemSelected = function(){ console.log( 'item selected' ); };

$( document.body ).append( dropDown.$element );

dropDown.getMenu().on('select', itemSelected);