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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:39:58+00:00 2026-05-24T09:39:58+00:00

In a .net aspx-Page, I have a gridview with textboxes for prices. There is

  • 0

In a .net aspx-Page, I have a gridview with textboxes for prices. There is a default price and other prices. I want to achieve the following: when field with default price loses focus, this price is written to all other price fields of the row. Additionally, the next price field of the row is selected (like it is when using the tab button).

My jQuery code (I use css-classes to get textboxes)

$('.defaultPrice').blur(function() {
        var value = $(this).val();
        if (value != "") {
            $(this).closest('tr').find('.price').val(value);
        }
        $(this).closest('tr').find('.price').select();

    });

Without the last line of the code, the next field is not selected.
The script is not correct, because the next field is not selected (but the last).

  • 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-24T09:39:58+00:00Added an answer on May 24, 2026 at 9:39 am

    Are you looking for this?

    $('.defaultPrice').blur(function() {
            var value = $(this).val();
            if (value != "") {
                $(this).closest('tr').find('.price').val(value);
            }
            $(this).closest('td').next().find('.price').select();
    
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have asp.net's .aspx page. that have GridView let say GridViewParent and Each row
i am having a asp.net and c#.net application and i have a page gridview.aspx
I have a javascript function in the default.aspx page of my asp.net website project.
I have an ASP.NET project. Currently, it starts on the Default.aspx page. However, I’d
ASP.NET 1.1 - I have a DataGrid on an ASPX page that is databound
I have inherited an asp.net website to maintain when looking at the aspx page,
Just starting out in asp.net. Have just created a login.aspx page in my site
I found the following page on i18n and ASP.NET: http://wiki.asp.net/page.aspx/55/internationalization/ The videos were very
C# or VB.NET are welcome. I have an <%#Eval(FirstName)%> in the aspx page, I
well i have a asp.net aspx page, which references a css file have the

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.