Expand my Community achievements bar.

Setting the value of a drop down within a table

Avatar

Former Community Member

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.

0 Replies