4 Replies Latest reply: Feb 13, 2013 5:45 PM by fac586 RSS

    Show item on Button press event using Javascript

    spriya
      Hi,

      Can one of you please help me with this?

      We are using Apex 4.0, and I want to call a fucntion called show() that woudl show an item P1_IS_PL_2 when a button is clicked.

      HTML header of page:

      <script language="JavaScript" type="text/javascript">
      function hide() {
      $x_Hide('P1_IS_PL_2')
      }

      function show() {
      $x_Show('P1_IS_PL_2')
      }
      </script>

      The item I want to show is P1_IS_PL_2. It is currently a hidden item.

      I have a button B1, and under action when clicked, I have redirect to URL and have the following:

      javascript:show();

      Can you let me know what needs to be changed as the above is not working?

      Any input is greatly appreciated.

      Thanks!