{literal} {/literal} {footer_script}{literal} $(document).ready(function() { $("select[name=who]").click(function () { $("[name^=who_]").hide(); $("[name=who_"+$(this).attr("value")+"]").show(); }); $("#displayForm").click(function() { $("[name=add_permission]").show(); $(this).hide(); return false; }); }); {/literal}{/footer_script}