OK, I have this so far:
How can I make the textboxes empty when you click on them?
s there a way of resetting the value of the drop down menue when it is hidden?
Also why doesn't it show the textbox tag in the html of the file when it is showing them?
Have a look at this site to see it in action: http://asgsoft.net/petition/tellafriend.php?id=1
PLEASE TICK THE BOX TO START.
Thanks for the help in advance
Code:
<script type='text/javascript'>
function showField(div_name)
{
var txt = "";
var num = document.form1.item_count.value;
for(i = 0; i < num; i++)
{
txt += "<input type='text' name='friendname_" + i + "' value='name' onfocus='this.value='''/></input><input type='text' name='friendemail_" + i + "' value='email'/><br /></input>";
}
document.getElementById(div_name).innerHTML = txt;
}
function showDropDown()
{
if(document.form1.checkbox_name.checked == true)
{
document.getElementById('dropdown').style.display = "block";
}
else
{
document.getElementById('dropdown').style.display = "none";
document.getElementById('email_div').innerHTML = null;
}
}
</script>
How can I make the textboxes empty when you click on them?
s there a way of resetting the value of the drop down menue when it is hidden?
Also why doesn't it show the textbox tag in the html of the file when it is showing them?
Have a look at this site to see it in action: http://asgsoft.net/petition/tellafriend.php?id=1
PLEASE TICK THE BOX TO START.
Thanks for the help in advance





