En cours

Easy jQuery help - Select an option in a select list

Hi,

I have a form with a hidden field and a select list

The value of the hidden field will be pre-populated by the server

I would then like to update the selected option of a drop down list, based on its value.

So for example:

If hidden field value = 0

Select the option in the list with value 0

If hidden field value = 2

Select the option in the list with value 2

If hidden field value = 4

But there is no option in the select list with that value, deliver the standard Please select

I would ideally like this to be supplied as jQuery. Please use the attached code. I intent on using this for a couple of other fields on the form, so if you could add some quick comments that would be greatfully appreciated

Thanks

Compétences : Javascript, jQuery / Prototype, Design de site internet

Voir plus : jquery 2.1 0, jquery 2, jquery 1.9, jquery 1, design intent, no jquery, select, jquery, jquery c, intent, c jquery, jquery easy, design easy use, jquery fields, select option, jquery using, jquery list, select drop, easy jquery, jquery pre, javascript select option, update jquery, form design jquery, jquery hidden, jquery example

Concernant l'employeur :
( 4 commentaires ) Chobham, United Kingdom

N° du projet : #1068577

Décerné à :

AdamsK

ready for service sir. thanks.

30 £ GBP en 1 jour
(50 Commentaires)
5.2

8 freelance ont fait une offre moyenne de 30 £ pour ce travail

webguru47

Hi, please check pm.

30 £ GBP en 1 jour
(38 Commentaires)
6.2
barca2045

Can do this right now. Will use jQuery...

30 £ GBP en 0 jours
(55 Commentaires)
5.5
gutlu

Hi, This is a really simple job. Please consider my bid. Hoping for a kind response from your end.

30 £ GBP en 0 jours
(28 Commentaires)
3.8
svider

Hi. I can do this job. I can create a simple to use class to set the select values. On PM I send to you my last jobs. Greetings

30 £ GBP en 0 jours
(1 Commentaire)
3.0
ciupacazette

glad to help you

30 £ GBP en 0 jours
(1 Commentaire)
2.1
HiteshDobariya

hello sir please check PM.. Your code is already done with jquery..

30 £ GBP en 0 jours
(1 Commentaire)
1.9
yoncy

Hi man it's almost already done , i expect for your millestone.

30 £ GBP en 1 jour
(0 Commentaires)
0.0
agrawalatul

Hello there, I have very good knowledge of jquery and have experience of 3 years with PHP, MySql, Javascript and JQuery... And as i have mentioned that I can finish your task within 2 hours.

30 £ GBP en 1 jour
(0 Commentaires)
0.0