teblack
Programmer
- Apr 30, 2004
- 45
I have a page that I have a confirm box issue bases on a click of a delete button "Are you sure you want to delete"? Is is possible to wrap If logic around that confirm box logic.
I would like to test a selection box, to determine if the user has picked something from a that selection box first before I issue the "Are you Sure" confirm box. If the user fails to pick a selection from the box, I would like to issue a different confirm box asking "Please pick at least one from the Selection Box". If they have so then fire the "Are you Sure" confirmation box.
Here is my current button which needs to change -
Thanks in advance for any help with this.
Thanks again,
TBlack -
I would like to test a selection box, to determine if the user has picked something from a that selection box first before I issue the "Are you Sure" confirm box. If the user fails to pick a selection from the box, I would like to issue a different confirm box asking "Please pick at least one from the Selection Box". If they have so then fire the "Are you Sure" confirmation box.
Here is my current button which needs to change -
Code:
<input type="submit" id="submit3" name="submit3" value="Delete" class="styleButton" onclick="javascript: if (confirm('Are you sure you want to delete your companies access rights to this website?')) document.CompanyView_Form.action.value= 'employer.actionDeleteCompany'; else return false;">
Thanks in advance for any help with this.
Thanks again,
TBlack -