Jump to content


Photo

Ajax E Radio Buttons


  • Faça o login para participar
2 replies to this topic

#1 Marciofbb

Marciofbb

    Turista

  • Usuários
  • 51 posts
  • Sexo:Não informado

Posted 10/10/2006, 17:22

Amigos, estou querendo fazer um request entre dois radios buttons, mas o ajax só tah pegando o primeiro valor do radio, vejam o código:
<form name="form_dec"  enctype="multipart/form-data" method="post" action="">
			<div id="form_tipo">
			<fieldset>
			<legend>Selecione o tipo de busca</legend>
				<label>
				  <input type="radio"  name="tipo_pesquisa" id="tipo_pe1" value="PP"  />
				  Pareceres Pr&eacute;vios emitidos em 2006</label>
				<br />
				<label>
				  <input type="radio" name="tipo_pesquisa" id="tipo_pe2" value="AV"  />
				  </label>
				<br />
			</fieldset>
						  .....
Mas quando eu dou alert ele só pega o primeiro valor (PP), mesmo quando eu seleciono o (AV)....
alguém me ajude..
Marcio Mota
"As coisas deveriam ser simples e não simpificadas"
Albert Einstein

#2 ComeQuieto

ComeQuieto

    Turista

  • Usuários
  • 33 posts
  • Sexo:Não informado

Posted 14/10/2006, 22:20

Você por acaso não tá pegando o valor do id="tipo_pe1" não??

Coloca o código ajax aí tb..

Falow...

#3 JulioGreff

JulioGreff

    Feel Free!

  • Usuários
  • 390 posts
  • Sexo:Não informado
  • Localidade:localhost
  • Interesses:JavaScript, Ajax, POO, etc. etc. etc.

Posted 15/10/2006, 18:39

Tenta colocar os dois id's iguais...
Júlio Greff de Oliveira - Always a JavaScripter...
Contato: julio.greff [at] gmail [dot] com

Habilidades: JavaScript, Ajax, PHP, XHTML, CSS, MySQL, POO
Blog: http://www.juliogreff.blog.br




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq