capt_nemo777
12-01-2010, 05:29 PM
question: how to select the 7th value in my dropdown menu ?
http://i52.tinypic.com/iggn0x.jpg
this drop down menu is generated by my php function inside a model of my mvc app like this
public function getSecretQuestions()
{
return array(
0 => 'What is your favourite Colour?',
1 => 'What is your mothers Maiden Name?',
2 => 'What is your Pets Name?',
3 => 'What was your first telephone number?',
4 => 'What was your favourite teachers name?',
5 => 'What is the title of your favourite film?',
6 => 'What is the name of your favourite book?',
7 => 'Write my own question',
);
}
so how am i gonna select the 7th key value pair using jquery given the id of the drop down menu in order for me to show a text box ? :confused:
http://i52.tinypic.com/iggn0x.jpg
this drop down menu is generated by my php function inside a model of my mvc app like this
public function getSecretQuestions()
{
return array(
0 => 'What is your favourite Colour?',
1 => 'What is your mothers Maiden Name?',
2 => 'What is your Pets Name?',
3 => 'What was your first telephone number?',
4 => 'What was your favourite teachers name?',
5 => 'What is the title of your favourite film?',
6 => 'What is the name of your favourite book?',
7 => 'Write my own question',
);
}
so how am i gonna select the 7th key value pair using jquery given the id of the drop down menu in order for me to show a text box ? :confused: