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

  • Home
  • SEARCH
  • 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 7687621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:44:39+00:00 2026-05-31T19:44:39+00:00

What I want to do is when a user clicks something: <div id=FormContainer> <form>

  • 0

What I want to do is when a user clicks something:

<div id="FormContainer">
    <form>
     ...
    </form>
</div>

<a href="#" onClick="FlashElement()">Make it flash</a>

It briefly flashes a rectangle around the form within the FormContainer. Is there any way I can achieve this?

  • 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-31T19:44:40+00:00Added an answer on May 31, 2026 at 7:44 pm

    A quick and simple way would be to draw a colored border then remove it after a short period:

    function FlashElement() {
      var $el=$('#FormContainer'), oldBorder=$el.css('border');
      $el.css({border:'4px solid yellow'});
      setTimeout(function() { $el.css({border:oldBorder}); }, 500);
    }
    

    If you want a repeated flashing effect then you could make several calls to “setTimeout” to hide/show the border at the desired interval, e.g.:

      // ...
      var newBorder = '4px solid yellow';
      $el.css({border:newBorder});
      setTimeout(function() { $el.css({border:oldBorder}); }, 100);
      setTimeout(function() { $el.css({border:newBorder}); }, 200);
      setTimeout(function() { $el.css({border:oldBorder}); }, 300);
      setTimeout(function() { $el.css({border:newBorder}); }, 400);
      setTimeout(function() { $el.css({border:oldBorder}); }, 500);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When a user clicks a submit button I want the form to be submitted.
When the user clicks an Edit button on my form, I want a box
I want to close a System.Windows.Forms.Form if the user clicks anywhere outside it. I've
I want to, when the user clicks a button on my website, to make
I want to perform an action when a user clicks on a div. However
When the user clicks a button, I want his browser to automatically scroll to
In my application when a user clicks on a button I want to open
I want to know column index of header in AdvancedDataGrid when a user clicks
I want to have a JEditorPane inside a JScrollPane. When the user clicks a
I have the following usecase: A div with some buttons When the user clicks

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.