Jump to content
Fórum Script Brasil
  • 0

Como validar este formulario em javascript


wood1975
 Share

Question

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Fundamentos de Web Design 2</title>
<link rel="stylesheet" type="text/css" href="view.css" media="all">
<<script type="text/javascript" src="codigo.js"></script>
</head>
<body id="main_body" >
<img id="top" src="top.png" alt="">
<div id="form_container">
<form id="form_817194" class="appnitro" method="post" action="">
<div class="form_description">
</div>
<ul >
<li id="li_4" >
<label class="description" for="element_4">Sexo </label>
<span>
<input id="element_4_1" name="element_4" class="element radio" type="radio" value="1" />
<label class="choice" for="element_4_1">Masculino</label>
<input id="element_4_2" name="element_4" class="element radio" type="radio" value="2" />
<label class="choice" for="element_4_2">Feminino</label>
</span>
</li> <li id="li_3" >
<label class="description" for="element_3">Interesses em computacao </label>
<span>
<input id="element_3_1" name="element_3_1" class="element checkbox" type="checkbox" value="1" />
<label class="choice" for="element_3_1">HTML</label>
<input id="element_3_2" name="element_3_2" class="element checkbox" type="checkbox" value="1" />
<label class="choice" for="element_3_2">CSS</label>
<input id="element_3_3" name="element_3_3" class="element checkbox" type="checkbox" value="1" />
<label class="choice" for="element_3_3">JavaScript</label>
<input id="element_3_4" name="element_3_4" class="element checkbox" type="checkbox" value="1" />
<label class="choice" for="element_3_4">PHP</label>
</span>
</li> <li id="li_1" >
<label class="description" for="element_1">Nome </label>
<div>
<input id="element_1" name="element_1" class="element text medium" type="text" maxlength="255" value=""/>
</div>
</li> <li id="li_5" >
<label class="description" for="element_5">Cidade </label>
<div>
<select class="element select medium" id="element_5" name="element_5">
<option value="" selected="selected"></option>
<option value="1" >Uberaba</option>
<option value="2" >Uberlândia</option>
<option value="3" >Presidente Olegário</option>
<option value="4" >Patos de Minas</option>
<option value="5" >Outra</option>
</select>
</div>
</li> <li id="li_2" >
<label class="description" for="element_2">Observação </label>
<div>
<textarea id="element_2" name="element_2" class="element textarea medium"></textarea>
</div>
</li>
<li class="buttons">
<input type="hidden" name="form_id" value="817194" />
<input id="saveForm" class="button_text" type="submit" name="submit" value="Submit" />
</li>
</ul>
</form>
<div id="footer">
Generated by <a href="http://www.phpform.org">pForm</a>
</div>
</div>
<img id="bottom" src="bottom.png" alt="">
</body>
</html>
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.

 Share

  • Forum Statistics

    • Total Topics
      149.8k
    • Total Posts
      646.6k
×
×
  • Create New...