Results 1 to 3 of 3

Thread: hidden field

  1. #1
    Join Date
    Mar 2004
    Posts
    53

    Unanswered: hidden field

    hi...
    can somebody teach me how to call hidden field in html in javascript.......
    i want to call

    <input name="user" type="hidden" id="user" value="<%=(Recordset1.Fields.Item("arahan").Value) %>">


    in

    function periksa(){

    var gid=form2.id.value;
    var guser=form1.user.value;

    if(gid!=gsuser){
    alert("Anda tidak mempunyai kebenaran untuk mengemaskini data!!!!");
    return false;}
    else
    return true;
    }

  2. #2
    Join Date
    Dec 2003
    Location
    chennai
    Posts
    27

    Thumbs up

    hi fisa
    u just pass form name as parameter in calling javascript function,then
    u can invoke hidden field by document.<formname>.<fieldname>.value

    try this
    bye
    vas

  3. #3
    Join Date
    Mar 2004
    Posts
    53

    still cannot work

    the function still cannot work...it seems like the system doesnt check the function.....actually before this i have use the same function but in different condition...it works..but it cannot work for this page...why???

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •