Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa HTML Drop down and radio button value on edit action
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Nilima Avinash Raut
Drop down and radio button value on edit action
0 Answer(s)      2 years and 10 months ago
Posted in : HTML


HI,

I have a title field and a payment type field

for title i have used drop down with values mr.,mrs.,miss for payment type there are to radio buttons as by cash & by cheque

When 'm adding a new customer it works fine as we have to select the value from dropdown and radio button.. But the problem goes with edit action..

While the edit form is being displayed it gets all the values from the database for text boxes..bt select default value for dropdown and radio button...How do i get the value from the database for title and radio button selected for default

Here's is my edt page code for dropdown and radio button.

 <td>
             <b class="label">Title<b>
          </td>
          <td>
            <select name="title">
                 <option value="Mr.">Mr.</option>
                 <option value="Mrs.">Mrs.</option>
                 <option value="Miss">Miss.</option>
            </select>
          </td>



<td width="25%">
              <b class="label">Payment Type<b>
           </td>
           <td width="40%">
            <INPUT TYPE=radio NAME="payment_method" VALUE="cash" CHECKED><b class="label">By Cash</b></input>
             <INPUT TYPE=radio NAME="payment_method" VALUE="cheque" onclick="return payment();"><b class="label">By Cheque</b></input>
           </td>  

'm using jsp and ms access database..


Advertisement
View Answers

Related Tutorials/Questions & Answers:
Drop down and radio button value on edit action
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... for text boxes..bt select default value for dropdown and radio button...How do
radio button value on edit action
...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...radio button value on edit action  This is my edit.jsp code...In my
Advertisements
html menu button drop down
html menu button drop down  How to create a menu button in HTML?   <select id="category"> <option value="1">One</option> <option value="2">Two</option> </select> <select id
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
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
Get radio button value after submiting page
Get radio button value after submiting page  Radio buttons are dynamically generated.After selecting radio button & submitting the page , the value of the selected radio button get displayed in that jsp page. <
Retrieve value of radio button from database to form
Retrieve value of radio button from database to form  var gn=document.getElementsByName("empg"); //empg is name of radio input type. for(var i=0;i
Struts 2 radio button value problem
Struts 2 radio button value problem  When I use s:radio tag in struts 2, I'm not able to get the selected value using document.getElementById... gives first radio option's value as the value for any option selected. Ex
check radio button on retrieving the value from database.
check radio button on retrieving the value from database.  HI i am... database and according to that i want to check the cash cheque radio button... information from database the i want to show cash radio button checked.How can i do
get a radio button click value - JSP-Servlet
get a radio button click value  thanks sir for sending code ,but i have one probs that is i m getting a null value i m calling getParameter("id... in the input tag name="radio" eventhough i m getting a null value please help me
displaying section in the jsp based on the sected value in drop down - Java Beginners
on the jsp based on the selected value in the drop down list using java script code...displaying section in the jsp based on the sected value in drop down  ...; Hi friend, drop dwon list using javaScript function
jsp code for a drop down box to retrive value from database
jsp code for a drop down box to retrive value from database  my project needs to get the value from database in to the drop down box..... pls give me code for that ..... tan q   1)login.jsp: <html> <script>
to update drop down list value when selected from website
to update drop down list value when selected from website  hi help me, i want to insert value into db when i select from a drop down list... value="">--- Select ---</option> </div> <?php mysql_connect
to update drop down list value when selected from website
to update drop down list value when selected from website  hi help me, i want to insert value into db when i select from a drop down list... value="">--- Select ---</option> </div> <?php mysql_connect
to update drop down list value when selected from website
to update drop down list value when selected from website  hi help me, i want to insert value into db when i select from a drop down list... value="">--- Select ---</option> </div> <?php mysql_connect
to access value of drop down value in beans when dropdown is populated using ajax
to access value of drop down value in beans when dropdown is populated using ajax  i want to access value of dropdown box in beans .. and this drop down was filled using ajax. plz help
Drop Down
Drop Down  How to insert date into database using dropdown like facebook
drop down
drop down  how can i add data from choice/dropdown component of java awt to myaql table
radio button
radio button  On selecting a radio button, it should open a aspx page
drop down menu
drop down menu  drop down menu using html
Dojo Radio Button
. For creating radio button you need "dijit.form.CheckBox". The radio button do some action on press.  Try Online: Radio Button The RadioButton class...Dojo Radio Button         
RADIO FROM JSP TO ACTION.
RADIO FROM JSP TO ACTION.  Hi frds, how to get the selected multiple radio button values from jsp to action
Drop Down reload in IE
Drop Down reload in IE  Hi i was using two drop down box..One... from the 2nd drop down then the 1st drop down ( which is date) automatically loads to 1 which is first value..This is the problem im facing in IE but it works
how to set a value of dynamic number of drop down lists on a jsp page and access it value on another jsp page
how to set a value of dynamic number of drop down lists on a jsp page... ,rating2......number of buks in that category(and each drop down list has value... number of drop down lists(depending upon number of books in that category) on jsp
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... to do is to select the appropriate radio button. Any pointers please
validation for drop down list
validation for drop down list  Hi all I have a form, it contain 12 drop down list. Each drop down has 1 to 5 values,i need to validate this form. the following condition should be true. 1.you can choose only 3 times 5 value. 2
drop down list in Struts
drop down list in Struts  How to create a drop down list in Struts
How to add radio button value in a table for particular field?
How to add radio button value in a table for particular field?  Hi,I... one radio button for text field then it insert only one value absent OR present... dynamically from other table and two radio button one for present and the second
get a value when a radio button clicked - JSP-Servlet
get a value when a radio button clicked  sorry sir my actual probs is that 1st i m callig a jsp in that i m displaying a table where i used a radio button to access a value(also used u r code),then in this jsp i m having a forms
dynamic drop down list
dynamic drop down list  I want to create 2 drop down list, where it takes value from database and the two list are dependent..means if I select a particular value from one the other list is developed accordingly..depending
Login With Drop Down
Login With Drop Down   Hi all, I am doing a project using JSP. My... a drop down list consisting of Customs and Accounts. I have user accounts of both the departments. Now, my intention is to select the department from the drop down
 

 

 

DMCA.com