SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist Tapan's Avatar
    Join Date
    May 2005
    Location
    India
    Posts
    564
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Javascript validation issue

    Hi,

    I have 3 submit buttons named Button1, Button2 and Button3

    I have a text field named: narration

    What I am doing is that when Button3 is clicked for form submission then it should check wether text field narration is not empty and if the field is empty then an alert should come and form should not get submitted.

    On the other hand i have another function in it which is checking other fields wether they are empty or not which is in <form onsubmit="return chkForm()">

    and this 3rd submit button i have:
    <input type="submit" name="button3" onclick="return chkNarration()">

    But when i press the Button 3 for form submission then chkForm() function is working fine but chkNarration() is not working Any reasons ?

    Thanks.

  2. #2
    SitePoint Evangelist Tapan's Avatar
    Join Date
    May 2005
    Location
    India
    Posts
    564
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    hi,

    sorry i resolved the issue.

    thanks


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
  •