tags:

views:

141

answers:

2

HI,

 i am having a Input hidden element like

in my JQuery i am setting the value for the above input type after some ajax call like

EDIT:::

                      $.ajax({
  type: "POST",
    url: "http://localhost/FormBuilder/index.php/forms/saveForm/",
                       async: false,
  data: "formname="+formname+"&status="+status,
                           success: function(msg){$("#FormID").val(msg); }//success

                 });//ajax

Now somewhere in the code after this i want to fetch the value of this FIeld.How to get this value on live of value for this input type..

EDIT::: i am retriving like by var FORMID=$("#FormID").val();//but shows null

How to get the value of it on live of this Input element

A: 

To get a value, you just have to call the val function without arguments:

var value = $("#FormID").val();
CMS
A: 

Try var FORMID=$("#FormID").val()

jdelator