Install Sudo On Linux Debian (jessie)

What is ‘sudo’? Wikipedia said that sudo is: sudo is a program for Unix-like computer operating systems that allows users to run programs with the security privileges of another user, by default the superuser. It originally stood for “superuser do” as the older versions of sudo were designed to run commands only as the superuser. … Continue reading Install Sudo On Linux Debian (jessie)

Loop through all the options in select HTML using JS

In some cases you need to loop thru all options in the select HTML component. This code demonstrate how to do it:   var select = document.getElementById(“Market”); for(i = 0; i < select.options.length; i++) { //Display the option value console.log(select.options[i].value); //Display the option text console.log(select.options[i].text); }