Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Setting the value of a drop down within a table

Avatar

Avatar
Validate 1
Level 1
gwynp51907864
Level 1

Likes

0 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
gwynp51907864
Level 1

Likes

0 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
gwynp51907864
Level 1

23-04-2015

Hi all,

I have three tables Orientation, Skill Development and Exam Preparation.

Each table has two rows. The first row is just headings the second, Row1, contains a drop down a date field and a numeric field along with two buttons which  are 'add activity' and delete 'activity'

Users can select which tables they would like to show. e.g. answering 'yes' will display the orientation table saying 'no' will 'hide' it.

When the user selects 'no', using JavaScript, I would like to set the date field to null, the numeric field to null and the drop down list to 'Please select' which is value number 8 in my binding.

What I would like to know is how to do the above on each instance of that row occurring i.e. if I have added an activity I would like to set the date field to null, the numeric field to null and the drop down list to "8" in that new instance as well as the original row1.

Any help would be much appreciated.

Please let me know if you need anything clarified.

Thanks in advance!

Just letting you know that I'm also a newbie to JavaScript. I only know pretty basic stuff.

Accepted Solutions (0)

Answers (0)