Difference between revisions of "Demo homepage"

From evidyaloka
Jump to: navigation, search
Line 5: Line 5:
 
</h2>
 
</h2>
 
</div>
 
</div>
 
<htmltag tagname="script" type="javascript">
 
 
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);
 
</htmltag>
 

Revision as of 02:43, 26 December 2022

Evidyaloka Welcomes you!!