Hello,

I have made a little progress! I now have the code below which works
in IE but not in the latest version of Firefox. Can anyone see why?

Cheers

Geoff

<html>
<head>
<title>Untitled</title>
<script src="assets/javascript/prototype.js" type="text/javascript">
</script>

<script type="text/javascript">

function getValue() {

var typeValue = Form.getInputs('myform','radio','picNum').find(function
(radio){return radio.checked; }).value;
alert(typeValue);

}

</script>
</head>

<body>

<form name="myform" action="#">
<input type="radio" name="picNum" value="1">
<input type="radio" name="picNum" value="2">
<input type="radio" name="picNum" value="3">
<input type="button" name="button" value="Send" onClick="getValue
(this.form);">
</form>

</body>
</html>


On Jan 10, 9:13 pm, geoffcox <g...@freeuk.com> wrote:
> Hello,
>
> I'm not clear how to cope with radio buttons using form.serialize. I
> have
>
> <form id="myForm" action="#">
> <input type="radio" name="picNum" value="1"> <br>
> <input type="radio" name="picNum" value="2"> <br>
> <input type="radio" name="picNum" value="3"> <br>
> <input type="button" value="send" onClick="getValues();">
> </form>
>
> What would the getValues() function need? 'would appreciate any help!
>
> Cheers,
>
> Geoff
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to