Đã hoàn thành

Easy jQuery help - Select an option in a select list


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


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

Xem nhiều hơn: 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

ID dự án: #1068577

Được trao cho:


ready for service sir. thanks.

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

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


Hi, please check pm.

£30 GBP trong 1 ngày
(38 Nhận xét)

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

£30 GBP trong 0 ngày
(55 Nhận xét)

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ận xét)

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ận xét)

glad to help you

£30 GBP trong 0 ngày
(1 Nhận xét)

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

£30 GBP trong 0 ngày
(1 Nhận xét)

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

£30 GBP trong 1 ngày
(0 Nhận xét)

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ận xét)