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

    Setting value of a page item using onclick

    Vidya13

      Hi,

       

       

      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="$x_Value('P22_ADD_VAL',"2");"

       

       

      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?

       

       

      Thanks,

      VS.