
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?
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.