Jump to content
Fórum Script Brasil
  • 0

Como validar este formulario em javascript



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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>
<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">
<ul >
<li id="li_4" >
<label class="description" for="element_4">Sexo </label>
<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>
</li> <li id="li_3" >
<label class="description" for="element_3">Interesses em computacao </label>
<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>
</li> <li id="li_1" >
<label class="description" for="element_1">Nome </label>
<input id="element_1" name="element_1" class="element text medium" type="text" maxlength="255" value=""/>
</li> <li id="li_5" >
<label class="description" for="element_5">Cidade </label>
<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>
</li> <li id="li_2" >
<label class="description" for="element_2">Observação </label>
<textarea id="element_2" name="element_2" class="element textarea medium"></textarea>
<li class="buttons">
<input type="hidden" name="form_id" value="817194" />
<input id="saveForm" class="button_text" type="submit" name="submit" value="Submit" />
<div id="footer">
Generated by <a href="http://www.phpform.org">pForm</a>
<img id="bottom" src="bottom.png" alt="">
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.

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
    • Total Posts
  • Create New...