2 Replies Latest reply on Jun 16, 2013 8:10 PM by Patrick Wolf-Oracle

    Setting value of a page item using onclick





      I am new to APEX and have been checking how to set the value of an item on button click.

      I saw a lot of threads related to that but couldnot find a solution.


      I want to set the value of hidden item P22_ADD_VAL to 2.

      In the "button attributes" of the button,

      onclick="$x("P22_ADD_VAL").value = "2";"



      also tried




      onclick=" $s("P22_ADD_VAL","2");"



      none of them work.

      Can you pls tell me wht i am misssing or what is the right way to do it?