Hi
I am new to chronoforms and jQuery and am really struggling with what seems like should be quite simple.
I have dB read that gets data from a table that include the fields session and session_price.
The dropdown on the form is called session, and using the info in FAQs I have got it to display the contents of the session field. Now I need the textbox called sessionprice to display the value that corresponds to the session chosen.
Using info in the FAQs I can make the textbox contain the value selected in the dropdown with:code]jQuery(document).ready(function(function(jQ){
jQ('#session').change(function(){
var desc;
desc=jQ('#session').find(":selected").text();
jQ('#sessionprice').val(desc);
)}
)}[/code]
But, is there a simple way to get the value of the corresponding session_price from the array?
Many thanks for your patience
Mikki
I am new to chronoforms and jQuery and am really struggling with what seems like should be quite simple.
I have dB read that gets data from a table that include the fields session and session_price.
The dropdown on the form is called session, and using the info in FAQs I have got it to display the contents of the session field. Now I need the textbox called sessionprice to display the value that corresponds to the session chosen.
Using info in the FAQs I can make the textbox contain the value selected in the dropdown with:code]jQuery(document).ready(function(function(jQ){
jQ('#session').change(function(){
var desc;
desc=jQ('#session').find(":selected").text();
jQ('#sessionprice').val(desc);
)}
)}[/code]
But, is there a simple way to get the value of the corresponding session_price from the array?
Many thanks for your patience
Mikki