[Solved] select what is being shown on index, Php [closed]

I’ll try to get you on the right way. But you’ll have to try and update it yourself to suit your needs. Below code could be your index page. <?php if(isset($_POST[‘submit’])) { $page = $_POST[‘page’]; } else { $page=”home”; } ?> <form method=”post” action=”<?php echo $_SERVER[‘PHP_SELF’]; ?>”> <select name=”page”> <option value=”home”>Home</option> <option value=”something”>Some other page</option> … Read more

[Solved] How can i change select tag option into button group?

Button groups in bootstrap are a way to display buttons consecutively. In jQuery, iterate over all of the options, and for each of them insert a button element into a button group. At the end, magically remove the select tag. $(“#convert”).on(“click”, function() { var btnGroup = “<div class=”btn-group”></div>”; $(“body”).append(btnGroup); $(“option”).each(function() { $(“.btn-group”).after(“<button>” + $(this).html() + … Read more