chico1st Posted August 13, 2006 Share Posted August 13, 2006 Okay I have a form and I have 2 radio buttons on itEach radio button corresponds to a text box so I have a script that will check the buttons depending on which text box gets clickedbut I have 3 problems.1) I need the script to go off if you tab in as well2) I need the other radio button to get unchecked if you check one but that doesnt do itself. 3) I have an uncheck function that I can use but i dont know how to put 2 functions into 1 onclick trigger. And it seems taht if i use 2 onclick functions the 2nd one doesnt trigger. Any help would be awesomeTHANKS A TONNEPS thanks for the help earlier corbin Quote Link to comment Share on other sites More sharing options...
toplancers Posted August 13, 2006 Share Posted August 13, 2006 [quote]2) I need the other radio button to get unchecked if you check one but that doesnt do itself. [/quote]if those buttons are placed in a single form, then no problem. can you show me some codes?http://TopLancers.comProfessionals and Freelancers, Create your profile!http://TopLancers.com/forumJoin in our forum today! Quote Link to comment Share on other sites More sharing options...
chico1st Posted August 13, 2006 Author Share Posted August 13, 2006 This is the 1st radio button[b] <input name="rextopic" id="rextopic" type="radio" value="true" /></td>[/b] then i ahve some php<?php $query = "SELECT topicID, name FROM topic"; $output = "<td><select name='extopic' id='extopic' onClick=check('rextopic');>"; $result = mysql_query($query, $dbConn); while($row = mysql_fetch_assoc($result)){ $output .= "<option selected='$row[topicID]'>$row[name]</option>"; } $output .= "</select></td>"; print $output; ?> </tr> <tr> <td>New Topic here is the second radio[b]<input name="rnewtopic" id="rnewtopic" type="radio" value="true" /></td>[/b] Quote Link to comment Share on other sites More sharing options...
chico1st Posted August 13, 2006 Author Share Posted August 13, 2006 i figured out that radio button grouping thing.. im blaming dreamweaver :P Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.