radio button selection should move the control to a text box that needs to be complete

radio button selection should move the control to a text box that needs to be complete

on selection of a radio button mouse should move to a particular text box that needs to be filled. How?

View Answers

November 17, 2010 at 4:07 PM

Hi Friend,

Try the following code:

<html>
<head>
<script>
function set(){
var i=0;
if (document.getElementById('rad').checked){
document.form.text.focus();
return true;
}
}
</script>
</head>
<form name="form">
TextField: <input type="text" name="text"><br>
    </form>
    <input type="radio" name="rad" id="rad" onclick="set();">
    </html>

Thanks


November 18, 2010 at 2:31 PM

Hi,

Thank for the swift answer. I am new to Java coding. SO facing these kind of situation. I appreciate your swift response.

Thank you.









Related Tutorials/Questions & Answers:
radio button selection should move the control to a text box that needs to be complete
radio button selection should move the control to a text box that needs to be complete  on selection of a radio button mouse should move to a particular text box that needs to be filled. How
enable text box and label on selection
enable text box and label on selection  hello, Please tell me how to enable label and text box on selection of drop down list box. in drop down list box all values come from database. please reply
Advertisements
On selecting a radio button, it should open a jsp page.
On selecting a radio button, it should open a jsp page.  Hi, COuld you please tell me how to link a radio button selection to a jsp. My requirement is if I select a radio button then it should open a jsp page. thank you
auto complete text box - Ajax
auto complete text box  How to create auto complete text box in jsp using ajax technology ? plz giv me steps wise code
Text box control--keypress event
Text box control--keypress event  In my form have a text box...My requirement is... when is type characters in that box... before typing the 3rd character the space should come automatically or programmatically...the sturucture
Radio Button in HTML
" than it sets the control to a radio button. <name> tells the group name... is written by the text next to the radio button. It is not the value attribute...Radio Button in HTML is a type of input form that allows a user to select one
Image selection instead of radio button very urgent.. - JSP-Servlet
Image selection instead of radio button very urgent..  Respected Sir... button to select Emp ID which is getting populated in the text box of my home page... of this radio button. There must be an arrow or icon for each Emp ID. The color
Auto Complete Text Box - JSP-Servlet
Auto Complete Text Box  Please help me in Aotocomplete text box code. I m a java programmer. I m working on jsp tech. please give me the code for Autocomplete text box in which the values will generate from database table
when radio button is selected corresponding jsp page should open
when radio button is selected corresponding jsp page should open  how to write code in HTML & jsp, when we click on radio buttons the corresponding jsp page should open..!   <html> <script> function
Auto Complete Text Box - JSP-Servlet
Auto Complete Text Box - JSP-Servlet  Auto Complete Text Box Please help me in Aotocomplete text box code. I m a java programmer. I m working on jsp tech. please give me the code for Autocomplete text box in which the values
my table should be reseted to new value upon the selection of the combo box..
my table should be reseted to new value upon the selection of the combo box..  import java.awt.Container; import java.awt.FlowLayout; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.sql.Connection
radio button
radio button  On selecting a radio button, it should open a aspx page
create text box by clicking button and submittong text in text box using submit
will click submit button the text should be submitted(it shows the value in text box in SOP). i also want the text box should generate in front of NEW button...create text box by clicking button and submittong text in text box using
List the names of classes used to create button and text box in Java.
List the names of classes used to create button and text box in Java.  List the names of classes used to create button and text box in Java
radio button - Development process
radio button  hi, there is 2 radio button and five text box... but when i click on cr radio button and enter value in text box.it enter the msg but it again go to sr radio button   Hi friend, Plz give full
interrelated two selection box
interrelated two selection box  hi i need two selection box .in 1 box all designation like manager, ceo etc , onclick on manager i should get list of managers names in second selection box.. like wise so on. from database
Struts 2 Radio Button
radio buttons and I am using Struts2 tag.I want first rado button to be selected by default.But when i select the second radio button and hit on search button i want to retain the selection of that second radio button on search list
sir plz help in design a jsp page whichis as follow username [_____] select [__>]password [_____] after selection then onlypassword text box is visible
sir plz help in design a jsp page   sir plz help in design a jsp page which is as follow username [ _ ] select [ > ] password [ _ ] after selection then only password text box is visible
validation of radio button
validation of radio button  There are 3 radio button as A,B,W. there are another radio as 1,2,3.if we select W in first radio button then should select 2nd one(1,2,3).if we select A or B not need select any one from 1,2,3
selection box linked with textarea
selection box linked with textarea    function get_val(tot_val1... detals i have in db with all fields .. like wise i have names in selection box sham... database in textarea line by line onclick selected text: eg:select: anand
dependent radio button
try to select these three an alert box should be raised saying please select... of the Radio Button is to select only one option at a time. So you don't need...dependent radio button  Hi. I have 4 radio buttons say all,chocolate
Radio button Validation
Radio button Validation  Hi.. How to validate radio button in java?if the radio button is not selected an error message should be given... Please...()==false)){ JOptionPane.showMessageDialog(null,"Please select radio button
Using radio button in struts - Struts
options to choose : Serial number 12345 radio button - selection 1 radio button - selection 2 Serial number 6789 radio button - selection 1 radio button...Using radio button in struts  Hello to all , I have a big problem
changing selection color of <button>
changing selection color of   dear all, i have loaded image in border less button tag when button is selected with tab key i get brown color... valign=middle > <figure> <button style="background-color:black
radio button - Development process
radio button  hello,i want to creat two radio button.out of which only one can be selected.and can show the contain of selected radio box   Hi friend, Code to solve the problem : My Page Radio 11
java radio button and exception
java radio button and exception  Dear Sir/Madam, I have problem with my addBagelRadioButton and addCheeseRadioButton. There should be only 1 radio button can be selected, but somehow 2 can be selected the same time. Also, I
Radio button in JSP - JSP-Servlet
Radio button in JSP  Hi! In my page I have two radio buttons. If i select first radio button. one text field has to be displayed.... If i select second radio button. text field has to be disappeared. pls.... help me.. 
iPhone Radio Button Example
iPhone Radio Button Example  Can you please suggest me how to create Radio button in my iPhone application. Actually, in my application i have two... click on that button it get selected and by default it should display unselected
Query on radio button
Query on radio button  I am having a multiple row in jsp page.They are dynamically coming. For each row there is one radio button. I want to select..., the values should got to a ActionClass. My query is that how do i send all
validate radio button using javascript
validate radio button using javascript  validate radio button using javascript
How to show autocomplete textbox values on combo box option selection using database?
How to show autocomplete textbox values on combo box option selection using database?  When I select option(i.e First Year) then it will show list of student names in auto-complete text box
Auto complete text box using jQuery plug in
Auto complete text box using jQuery  plug in In this tutorial, we... in. In this example , a text box is given , where you have to enter any Indian state . When you... 'a' in text box : Download Source CodeADS_TO_REPLACE_2 Click here
java script text box
will click submit button the text should be submitted(it shows the value in alert). i also want the text box should generate in front of NEW button(next/prev...java script text box  hi, I created a button when i click
display contents on the same page by selecting a radio button
if i click on pending then the due date text field should be displayed on the same page under the radio button...display contents on the same page by selecting a radio button  Bill
passing value of radio button
passing value of radio button  hi,i have 3 jframe built using the GUi editor in net beans 6.9. i have two radio button in the first jframe.i have to get the selected item appear on the 3rd frame after passing through the second
Radio Button in Java
Radio Button in Java       Radio Button is a circular button on web page that can be selected by the user. The AWT  Widget used to create a radio button is Checkbox
access into radio button
access into radio button  access the four fields of database called access,access file and stored in radio button.please help
Dojo Radio Button
Dojo Radio Button         .... For creating radio button you need "dijit.form.CheckBox". The radio button do some action on press.  Try Online: Radio ButtonADS_TO_REPLACE_1
Radio Button Problem in jsp.
Radio Button Problem in jsp.  I have a small doubt in my application, my requirement is to get a "single selectible row", I generated a radio button... radio button values from jsp to action using javascript
select box and text box validations
select box and text box validations  hi, any one please tell me how to set validations for select box and text boxes using bean classes? thank you   Please visit the following link: http://www.roseindia.net/jsp/user
Text box Checking
Text box Checking  I want to Write only the word A-Z in a text box What is the code
to get radio button value - Struts
to get radio button value   hello friend, i have a problem regarding... two major problems:- 1.these radio button is not going to select also 2.i want to set the "value" attribute of radio button in the above code. Can u help
Move text on the frame
Move text on the frame using Java Program In this section, you will learn how to move text on the frame. As you have already learned about the html marquee... to move the specified string. import java.awt.*; import 
two text box problem
two text box problem  i have two text box in two different pages and same variable use in two text box when enter value in first text box it's reflection show in second text box , how i reduce it in jsf ?   Hi Friend
radio button in jsp - JSP-Servlet
radio button in jsp  hye there.how do I create radio button in jsp?Could you please gimme an example of shopping cart in jsp which have I have using a Netbean not a tomcat.What is the code for view and update in jsp?Thanks
radio button value on edit action
radio button value on edit action  This is my edit.jsp code...In my......Problem 'm facing is on edit action 'm not retrieving radio button value..i have used if else logic..Bt its not working...My edit.jsp code is:-Radio button name
Selecting a radio button in jquery autocomplete from database value
Selecting a radio button in jquery autocomplete from database value  ... radio button? Here is the pertinent code: $("#name").autocomplete... it into a text box, the value shows up properly. What I want to this format value
enable text box
enable text box  Dear all I would like to enable a textbox by clicking on a button. pleas ehelp me out how can i do this regards JV
Move Curve Control Point
Move Curve Control Point       In this section, you will studied how to move the curve control point and manipulates the shape of curve. The Control points
Drop down and radio button value on edit action
for text boxes..bt select default value for dropdown and radio button...How do...Drop down and radio button value on edit action  HI, I have... the value from dropdown and radio button.. But the problem goes with edit action

Ads