cancel
Showing results for 
Search instead for 
Did you mean: 

Execute Apply in checkbox in Javascript

Former Member
0 Kudos

Good day,

I have a WAD template that has an Analysis Item, a checkbox and a button. When the button is clicked an Javascript is executed that checks if any of the checkboxes are checked, if none are checked then all are then checked via the Javascript, the only problem I now have is how do I simulate the executing of the apply button in the Javascript function.

Regards

Lucien

Edited by: Lucien Barnes on Sep 18, 2008 7:10 AM

What I need is the function that is executed when the button is clicked i.e. what is function the is executed by OnClick

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Good day,

Solved the problem

I used the following code.

// Get the apply button

var button_checkboxes = document.all(web_item_checkbox_group + "_BIBtnCBG");

// Simulate click.

button_checkboxes.click();