This is in my Javascript:
function doSomething(fieldActions) {
var Actions = fieldActions;
$(Actions).show("slow");
$(this).hide(); }
This is in my HTML:
<a onclick="doSomething('#date-actions');">edit</a>
The parameter needs to affect and DIV field. The ID of this field can be variable and there can be multiple on a page, so that's why I need to give the specific field it affects on. The parameter "#date-actions" is an example of what a DIV field could be called that it is calling to.
My error in firebug:
doSomething is not defined