hiding and showing the submit button with javascript and css

progman

New Member
Hello!

I was thinking... is it possible to do it?

Firebug allows me to insert "style="visibility:hidden"" at the <div class="fabrikActions"> <input class="button submit" type="submit" value="submit" name="submit"> </div> line.

It works very well.

Can I do it, somehow, in a javascript function?

Thanks!

Eduardo
 
Solved

Thanks!

Since my joomla template uses jQuery, it was very easy to do it! See it:

function hidesubmitbutton() {
jQuery.noConflict();
jQuery(".fabrikActions").hide();
};

function showsubmitbutton() {
jQuery.noConflict();
jQuery(".fabrikActions").show();
};

However, I have no idea how to do the same using mootools.

Eduardo
 
When and why do you want to hide the submit button? It helps directing you to the best way of doing it.
 
document.getElement('.fabrikActions').show()

document.getElement('.fabrikActions').hide()

are what you are looking for
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top