Đang Thực Hiện

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

Kỹ năng: Javascript, jQuery / Prototype, Thiết kế trang web

Xem thêm: 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

Về Bên Thuê:
( 4 nhận xét ) Chobham, United Kingdom

Mã Dự Án: #1068577

Đã trao cho:

AdamsK

ready for service sir. thanks.

£30 GBP trong 1 ngày
(50 Đánh Giá)
5.2

8 freelancer đang chào giá trung bình £30 cho công việc này

webguru47

Hi, please check pm.

£30 GBP trong 1 ngày
(38 Đánh Giá)
6.2
barca2045

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

£30 GBP trong 0 ngày
(55 Đánh Giá)
5.5
gutlu

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

£30 GBP trong 0 ngày
(28 Đánh Giá)
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 trong 0 ngày
(1 Đánh Giá)
3.0
ciupacazette

glad to help you

£30 GBP trong 0 ngày
(1 Đánh Giá)
2.1
HiteshDobariya

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

£30 GBP trong 0 ngày
(1 Đánh Giá)
1.9
yoncy

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

£30 GBP trong 1 ngày
(0 Đánh Giá)
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 trong 1 ngày
(0 Đánh Giá)
0.0