• 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 or hide fields Not Working in IE

Show or hide fields Not Working in IE 12 years 6 months ago #15156

I try this :

In Checkbox Group Additional Attributes

onclick="displayField();"


In CSS and Java Script :

<script type="text/javascript">
function displayField(field)
{
if(document.getElementById('Find7').checked)
document.getElementById('helement').style.display="";

else {
document.getElementById('helement').style.display="none";
document.getElementById('FindOther').value="";
document.getElementById('component11').setAttribute("class", "formNoError");
}
}

function validateFields()
{
if(document.getElementById('Find7').checked && document.getElementById('FindOther').value == '')
{
document.getElementById('component11').setAttribute("class", "formError");
return false;
}
else
return true;
}

window.addEvent('domready', function() {
displayField();
});
</script>

This is working in :Firefox , Safari, Chrome but is not working in IE 7,8,9

In IE when i check the box the field is not showing, but after i uncheck the field is showing... is like backwards in what show do
Last Edit: 12 years 6 months ago by nikiobicata.
The administrator has disabled public write access.

Re: Show or hide fields Not Working in IE 12 years 5 months ago #15544

  • dasaing
  • dasaing's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Don't use XHTML layouts
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!