Hello all
I have a function that shows/hides divs on my page.
function hidediv() {
var div_num = $("#myformvalue").val();
if (div_num == 1) {
$("#mydiv").hide();
};
}
I would like to add a feature to this code. Basically if a div is hidden then I want the form values within that div to be wiped.
Ideally it would look something like this:
function hidediv() {
var div_num = $("#myformvalue").val();
if (div_num == 1) {
$("#mydiv").hide();
[B]AND ThisValue = ""[/B]
};
}
Is it this simple to do? Thanks.
Also to the admin, the site is looking slick. Like it a lot.