i have write a html code in dreamweaver

i just make built in table in a form, by 4 coloumn and 2 row
1st row for the titling of part in row below
each coloumn of second row containing 3-4 radio button that each radio button representation a value number (i want 0 (zero) including in the value)..
purpose this radio button is when checked in all coloumn (one radio button in one coloumn) in four coloumn results a number in textfield result.
its working when radio button value not number 0 (zero) :
example :
radiobutton coloumn 1, checked on value= 2, RB col 2 checked on value= 2...(all of checked value= 2) and for result in the text field result i get 8. By randoming cheked in each radio button i get the valid number in text field result.

but i need two value 0 (zero) in two coloumn each one, wen i put value = 0 i get results not valid like i want.

can somebody help me, please?

If you post the html code here, we will be more clear on the issue.

i have write a html code in dreamweaver

i just make built in table in a form, by 4 coloumn and 2 row
1st row for the titling of part in row below
each coloumn of second row containing 3-4 radio button that each radio button representation a value number (i want 0 (zero) including in the value)..
purpose this radio button is when checked in all coloumn (one radio button in one coloumn) in four coloumn results a number in textfield result.
its working when radio button value not number 0 (zero) :
example :
radiobutton coloumn 1, checked on value= 2, RB col 2 checked on value= 2...(all of checked value= 2) and for result in the text field result i get 8. By randoming cheked in each radio button i get the valid number in text field result.

but i need two value 0 (zero) in two coloumn each one, wen i put value = 0 i get results not valid like i want.

can somebody help me, please?

====================

this is what i understood
your html code is

<table width="200" border="1">
  <tr>
    <td>zero</td>
    <td>one</td>
    <td>two</td>
    <td>three</td>
  </tr>
  <tr>
    <td><input name="radio" type="radio" value="0" /></td>
    <td><input name="radio" type="radio" value="1" /></td>
    <td><input name="radio" type="radio" value="2" /></td>
    <td><input name="radio" type="radio" value="3" /></td>
  </tr>
</table>

and you want to display the value of the radio button checked.. right?

if I am right it can be easily done by using jquery which is as follows

alert($('input[name="radio"]:checked').val());

or if you want to update the value to a text box whose name is "result" (let's say)
then use the following code

val=$('input[name="radio"]:checked').val();
$('input[name="result"]').val(val);

very thanks to anyones supporting my trouble.
my wrong put my js trouble in php forum, but i think its fine...
i just follow for all of your suggest an its was work
thanks, very thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.