• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Show/Hide textbox

Show/Hide textbox 12 years 5 months ago #15577

  • robdj
  • robdj's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hey htere, i'am trying to modify the code for http://demo.rsjoomla.com/fex but i would like it to work so it show/hide more tekstbokses.

Code i used:
<script type="text/javascript">
function displayField(field)
{
	if(document.getElementById('Find1').checked)
		document.getElementById('helement').style.display="";
 
	else {
		document.getElementById('helement').style.display="none";
		document.getElementById('FindOther').value="";
		document.getElementById('FindOther2').value="";
		document.getElementById('component11').setAttribute("class", "formNoError");
		}
}
 
function validateFields()
{
	if(document.getElementById('Find1').checked && document.getElementById('FindOther').value == '')
	{
		document.getElementById('component11').setAttribute("class", "formError");
		return false;
	}
	else
		return true;
}
 
window.addEvent('domready', function() {
displayField();
});
</script>

As you can see i tried just to put one more document.getElementById('FindOther2').value="";, but that dosen't work.

i need to remove, 5 tekstbokses if radio 0 is selected.

Acutly, i need i 0 is selected to show other textfield, and if radio 1 is selected some other textfields, is that posible, i can u provide the code for it?
Last Edit: 12 years 5 months ago by robdj.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!