Jump to content
Fórum Script Brasil
  • 0

Popular Combox com JS


Victor Miranda

Question

Tenho o codigo em anexo e preciso popular tambem paises nesse codigo, se alguém puder ajudar.

O problema:

Combox popula ESTADO+CIDADE preciso popular: PAIS+ESTADO+CIDADE

O HTML:

<html>

<head>

<title>Untitled Document</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script type="text/javascript" src="cidades.js"></script>

<script> window.onload = function() {

new dgCidadesEstados(document.getElementById("estado"), document.getElementById("cidade"), true);

}

</script>

</head>

<body>Estado: <select id="estado" name="estado"></select>

<br>

Cidade: <select id="cidade" name="cidade"></select>

</body>

</html>

O js denominado "cidade.js":

http://hotfile.com/dl/131544116/53185d4/cidades.js.html

http://www.multiupload.com/FVHS4K0XOB

Grato a todos! :rolleyes:

Edited by Victor Miranda
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...