SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard PHPycho's Avatar
    Join Date
    Dec 2005
    Posts
    1,201
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to pass this.form like value in text link ??

    hello forums !!
    i had a text link to submit the form
    Ex:
    <a href="#" onclick="validate(this.form,this.form.length)">submit</a>
    i want to pass those values but errors occurs, this.form is not a property, but i need to pass that value because my validation requires so...
    any idea !!
    awaiting for your help

  2. #2
    Caveat surfer Buddy Bradley's Avatar
    Join Date
    May 2003
    Location
    Cambridge, UK
    Posts
    2,366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If the arguments to your validate() function are referring to your form, you can use document.getElementById('theform_id') instead.


Bookmarks

Posting Permissions

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