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 8671109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:52:04+00:00 2026-06-12T18:52:04+00:00

After my Ajax form is submitted , i am adding dynamically the new row

  • 0

After my Ajax form is submitted , i am adding dynamically the new row to table with this code

var $var = $('table');
var newRow = "<tr><td> blah </td></tr>"

$var.find('tr:last-child').before(newRow)

Now i want the background color of that row as light yellow only for 3 seconds then change backto normal

  • 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-06-12T18:52:05+00:00Added an answer on June 12, 2026 at 6:52 pm

    You can try using setTimeout function:

    var $newRow = $("<tr class='light'><td>blah<td></tr>");
    $var.find('tr:last-child').before($newRow);
    setTimeout(function(){
        $('#table tr.light').removeClass('light')
    }, 3000)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A new problem emerged from this thread: jquery form validator never makes ajax call
A client has a contact form that is submitted using an AJAX callback. After
After the form is submitted (using ajax), I'm trying to fade it out and
I'm having trouble to display data after form submition using JS and AJAX here
I'm new with jqTree and I'd like to reload the tree after ajax call.
I have a table which is updated with ajax and after update it if
I have this structure <table> <tr><td><form> .........<input type=submit/> </form> </td></tr></table> I am submitting the
I'm trying to submit a form via AJAX and prevent a redirect after the
I'm putting an AJAX form in a bootstrap modal. After the form successfully submits,
I have a form where I dynamically populate a DropDownList using Jquery's ajax function

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.