0

I am using this neat script to develop a select menu.

http://exodecreations.com/jQuery/jqDropDown.html#plugin_options

I am using the follow example from the site:

$('#list4').jqDropDown({
   optionChanged: function(){alert('option changed...');},
   defaultStyle: false
   containerName: 'theContainer'
   toggleBtnName: 'awesomeToggleClass'
   optionListName: 'thisListIsRocking'
}); 

I am looking for a function on the optionChanged which will allow me to change a php variable based on the value that has been selected.

Any ideas on how to do this?

8
  • Can you elaborate on the part where you said "allow me to change a php variable based on the value that has been selected"? Commented Jun 18, 2013 at 19:53
  • Basically the selector lets the user choose Countries. I would like when for example i select france - the email address next to my selector to change to [email protected] Commented Jun 18, 2013 at 19:54
  • Throw an AJAX request into that function, should take care of it. Commented Jun 18, 2013 at 19:55
  • To do this - somehow i need to define a PHP variable i believe.. Commented Jun 18, 2013 at 19:55
  • AJAX request sounds good, i think it's what i need so that page doesn't refresh.. - not sure how to do this.. Commented Jun 18, 2013 at 19:56

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.