This topic is locked

hiding save button

11/7/2011 1:48:44 PM
PHPRunner General questions
R
rlee6087 author

I have an application on the add page there is a check box. I want the check to be checked before the user can save the information on the page, so in essence I would like the the save button disable until the user clicks the checkbox. anyone have a clue as to how this can be completed? Also on another page I have a button, I would that when the button is clicked, it adds one (1) to the existing value of a table. any help would be greatly appreaciated. thank you.

C
cgphp 11/7/2011
var save_button = $("a[id^='saveButton']");

save_button.hide();

$("input#checkbox_id").click(function(e)

{

save_button.toggle();

});



Change the value checkbox_id to match the id of your checkbox.