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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:13:48+00:00 2026-05-26T19:13:48+00:00

I am using JQuery to update some input values – and on the screen

  • 0

I am using JQuery to update some input values – and on the screen it looks as if the values are being set properly.

I am doing this:

 var company = $('[id$=' + idTag + ']');
                            if (company) {
                                company.val(ret.CompanyDocTitle);
                                company.attr("DocumentGuid", ret.CompanyDocumentGuid);
                            }

I can see the input text field getting set – so I know it has value.

When I go to save the information (Posting to ASPX page) when I try to retrieve the Text of my input box, its coming up blank

myobjtext = P1bRespComp.text

my aspx page is using a TextBox

<asp:TextBox ID="P1bRespComp" runat="server" ></asp:TextBox>

any thoughts on this?

EDIT
Found the issue I think – my INPUT field is marked as Disabled to prevent users from entering data in there – however – I do want the Value and other Attributes –
Is there a way I can get the Update value and attributes on this disabled INPUT field?

  • 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-26T19:13:49+00:00Added an answer on May 26, 2026 at 7:13 pm

    You can improve your js using this:

    $('#'+ idTag )
       .val(ret.CompanyDocTitle)
       .attr("DocumentGuid", ret.CompanyDocumentGuid);
    

    Jquery only set value and attribute if the element exist.

    I think you have to set the “name” attr in ASP.

    <asp:TextBox ID="P1bRespComp" name="P1bRespComp" runat="server"
    ></asp:TextBox>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using JEditable jquery plugin to update some data on my webpage. After
I am using jquery load method to update divs , it works great until
Using jQuery , how can I dynamically set the size attribute of a select
I am working with input elements in a form using jquery...I am trying to
Using jQuery/jQueryUI I want to populate a form using this HTML/JS show below. The
I'm currently using ajax and jquery to update search results with a form that
I have used the jquery-ui to autocomplete an input box and set a hidden
I have some jquery that runs when a link is clicked (below). This allows
I'm using Jquery with Ruby on Rails (3.1) and am having some problem with
I'm using jquery validate and I've set up groups. However, I'm having trouble figuring

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.