Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6869043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:30:33+00:00 2026-05-27T03:30:33+00:00

I am using a jQuery Modal popup script. It can be downloaded from: Modal

  • 0

I am using a jQuery Modal popup script. It can be downloaded from:
Modal Popup

I did come across an issue while using this script. I am using the modal window to show a contact form. Now within this modal window contact form, I have attached the following event to the form:

<form id="frm_contact" name="frm_contact" method="post" action="index.php" onsubmit=”return validateform(this);”>

So what I am trying to do is, validating the input upon clicking the submit button/form submission. An extract from this JS is following:

function validateform(frm_contact)
{
  alert(‘hi’);
  return false;
}

As you can see, I expected the ‘hi’ to popup but that never happened. This means that no alerts would be shown for any of the input fields upon validation. So in short, I am unable to show alerts within this modal window. How can I fix it so that I can show the alerts?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T03:30:34+00:00Added an answer on May 27, 2026 at 3:30 am

    Which browser are you using? Are you certain validateform is being called, is it visible in scope from the document containingform?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to write my own modal popup window using a jQuery function. However,
I'm using the Zurb jQuery Modal script to bring up a popup box. when
i am using jquery.simplemodal-1.1.1 and jquery-1.2.6.min to create a modal popup. this is my
I'm using jquery for modal dialogs. I want to open model dialog from one
I'm using the jquery ui dialog for a modal popup dialog. It's working great
Im trying to make a pop-up like window using jquery and its modal box.
Using the code found here: How to popup a jquery window to play youtube
I want to create modal popup box using jquery depending on the clicked tr
I'm using FancyBox jquery plugin to display modal popup boxes. The site is: http://www.chatisfying.com
I am using the jquery simplemodal plugin to popup a modal box and display

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.