I’m currently using this code to generate CSS toggles for my website. Id like to know if there is a way to modify this to generate a dropdown menu instead to save space for people who want to view the page in a smaller window or have small screen resolution.
function buildCssToggles() {
$.each($("[rel=stylesheet]"), function(index, value) { $("#css-display").append($("<input type='button' value='"+value.title+"' onclick='setCss(\""+value.title+"\");'></input>")); });
}
1 Answer