Selecting a radio button in jquery autocomplete from database value
I can get the data from the database using PDO to my jquery.js file. How do I force the value (1 = Handicap, 2 = Scratch, 3 = Both) to select the appropriate radio button?
Here is the pertinent code:
$("#name").autocomplete({
source: "directors.php",
minLength: 2,
select: function(event, ui) {
$('#td').val(ui.item.director);
$('#tdemail').val(ui.item.email);
$('#phone').val(ui.item.phone);
$('#format').val(ui.item.f);
}
});
If I take the '#format' value and write it into a text box, the value shows up properly. What I want to this format value to do is to select the appropriate radio button.
Any pointers please?
View Answers
Ads
Related Tutorials/Questions & Answers:
Advertisements
check radio button on retrieving the value from database.
check
radio button on retrieving the
value from database. HI
i am... information
from database the i want to show
cash
radio button checked.How can i do...
database and according to that i want to check the
cash cheque
radio button
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
Drop down and radio button value on edit action
i get the
value from the
database for title and
radio button selected... the
value from dropdown and
radio button..
But the problem goes with edit action...Drop down and
radio button value on edit action HI,
I have
Struts 2 radio button value problem
Struts 2
radio button value problem When I use s:
radio tag in struts...('radioButtonName').
value.(Note :- I'm getting proper
value in java
from jsp)
It always gives first
radio option's
value as the
value for any option selected.
Ex
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
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.
<
radio button
radio button On
selecting a
radio button, it should open a aspx page
Subtract a value in the database from java
Subtract a
value in the
database from java Hi, i want to know how to subtract a
value on a
database. im using JDBC connection
from access and i want to decrement the
value of table "quantity" of 1 each time it passes a loop my
Radio Button in HTML
button from a group of
button. When a user clicks on a
radio button, it becomes... by the text next to the
radio button. It is not the
value attribute.
Use of a
Radio..." name="
Button"
value="Water"> Water<br>
<input type="
radio" name
Selecting a Radio Button component in Java
Selecting a
Radio Button component in Java
 ... on any
radio button from a ButtonGroup the text of the
selected
radio button...
radio button label. This is done through the
generating event for the different