javascript - How do I create select menu in an external file and embed it in html to show the menu -
my website has individual pages members, have select menu used scroll 1 member other. have select menu coded in html on every page, need better solution since membership growing.
i need able create same select menu in separate file ability, when selected jump member page, have embedded in body need have alter/ update external file , it'll done member pages.
i've looked javascripting it, mysqling it, can't find (looking on youtube) code me in need.
my typical code select
//(select..... //(option value="http:www.website-profile-blahblah.html.... on , forth.
i need pull external file use across board , place in body need it.
thanks can offer.
in general sounds should using end rendering engine for. far select goes, great place use dropdown menu such 1 provided bootstrap since clicking select won't move page. if dont want use/can't use end rendering engine render options, suggest looking @ angular.js has great ng-repeat , ng-option feature allow dynamically build select/dropdown many users want.
angular ng-repeat page: https://docs.angularjs.org/api/ng/directive/ngrepeat
bootstrap dropdown: http://www.w3schools.com/bootstrap/bootstrap_dropdowns.asp (note tags go directly user's page)
Comments
Post a Comment