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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T02:18:28+00:00 2026-05-15T02:18:28+00:00

This line of code is working fine for Firefox $(#<%=txt1.ClientID%>).text() but not for IE8

  • 0

This line of code is working fine for Firefox

$("#<%=txt1.ClientID%>").text()

but not for IE8 and IE7. See the scenario below in order to understand what I really mean:-
Scenario:-

  1. Loading .aspx page.
  2. populating text box with some data from database.
  3. Now user changes data in same text-box at client-side (means page not yet submitted) So here in firefox, the above line of javascript is showing me the actual data came from database, but IE7&8 showing me the changed data. But I want actual data.

So i need some compatible code for IE7 & IE8

I hope i explained it well what i need. Thanks in advance

  • 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-15T02:18:28+00:00Added an answer on May 15, 2026 at 2:18 am

    What’s txt1? Is it an <input>?

    Use input.value, or in jQuery val(), to read the value of a form field. text() reads textual content inside an element, which for most form fields is nothing.

    For a <textarea> the textual content will be the initial contents of the field as in the source HTML file, not the current value of the field. (These initial contents correspond to the DOM defaultValue property, not value. In an <input>, this is the value="..." property instead of textual content, but it’s still defaultValue in the DOM and not value.)

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

Sidebar

Related Questions

Got this line of code here but its not working. private void Button_Click(object sender,
I have a page that's working fine in Firefox 3.5.6 but not in IE
In Firefox the page-break-after: always; directive is working fine. However, this same code is
This process has been working fine in Chrome, but in Firefox 7.0.1 there are
Working with OWASP's ESAPI, I found myself stuck at this particular line of code.
This line of code ((Matches)Container.DataItem).MatchID works in C# but in VB.NET, when used in
I know that this line of code will make the cell text-wrap: $objPHPExcel->getActiveSheet()->getStyle('D1')->getAlignment()->setWrapText(true); 'D1'
I have this line of code but it throws an error. What is the
ok, this code works just fine in Chrome. But, for some reason it does
I wrote this code and it is working nicely in Google Chrome but when

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.