Select Option List - Cuba

Online script which displays you the list of municipalities in Cuba using javascript.

Features

  • Select option script displays a drop down box which contains the list of municipality in Cuba.
  • This javascript code uses arrays instead of using line code.
  • Easy to integrate and quick responsive.

Preview

Select Option List - Cuba
©h

Downloads

<!--Scripts by hscripts.com-->
<!--More scripts @ www.hscripts.com-->
<html>

<head>

<title>Option List Of Cuba</title>

<style>
.frms select
{
width:45%;background:#fff;
border:#ddd 1px solid;
border-radius:.35em;
-moz-border-radius:.35em;
-webkit-border-radius:.35em;
-o-border-radius:.35em;padding:0 .5%;
margin-top:5px;margin-bottom:15px;
height:35px;}
body {
background: #fff none repeat scroll 0 0;font: 0.81em/150% Tahoma,Geneva,sans-serif;word-wrap: break-word;}

</style>
<script type='text/javascript'>
function chk(){
var sds = document.getElementById("dum");if(sds == null){alert("You are using a free package.\n You are not allowed to remove the tag.\n");
}var sdss = document.getElementById("dumdiv");if(sdss == null){alert("You are using a free package.\n You are not allowed to remove the tag.\n");
document.getElementById("content").style.visibility="hidden";
}}
window.onload=chk;

</script>

</head>

<body>
<div align='center' class='frms' id='content'>

<center><b>Select Option List - Cuba</b></center><br><br>

<select name=slist>

<script language="javascript">
var state = new Array("Camaguey", "Ciego de Avila", "Cienfuegos", "Ciudad de La Habana", "Granma", "Guantanamo", "Holguin", "Isla de la Juventud", "La Habana", "Las Tunas", "Matanzas", "Pinar del Rio", "Sancti Spiritus", "Santiago de Cuba", "Villa Clara");
for(var hi=0; hi<state.length; hi++)

document.write("<option value=\""+state[hi]+"\">"+state[hi]+"</option>");

</script>

</select>
<div align='center' style="font-size: 10px;color: #dadada;" id="dumdiv">
<a href="https://www.hscripts.com" id="dum" style="font-size: 10px;color: #dadada;text-decoration:none;color: #dadada;">&copy;h</a>

</div>

</div>

</body>

</html>

<!--Scripts by hscripts.com-->
  • Release Date - 31-08-2015
  • Get free version without ©copyright link for just $10/-
  • For customization of this script or any script development, mail to support@hscripts.com

Usage

  • Copy and paste the above code to run the script.
  • Here, var state is an array variable used to store the Cuba provinces list.
  • This javascript helps you to display the list of municipalities in Cuba on your web page.

License

Related Scripts

Free Javascript Scripts


Ask Questions

Ask Question