• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1221
  • Last Modified:

jQuery Autocomplete losing text on AutoPostBack

//<![CDATA[
////  
////    $(window).load(function() {
////    
////        $('input[id^="txtquantity"]').each(function() {
////            $(this).keyup(function() {

////                if (String($(this).val()).length < 3) return false;
////                $("#dialog_confirm").html

I have a table programtic wrapped in update panel.  when I do a partial postback using
 __doPostBack('UpdatePanel1', '');
I know the dom is destroyed. examples did not help me online, wonder can someone guide me through this process.
0
Seven price
Asked:
Seven price
  • 2
1 Solution
 
K_CH_KrishnaCommented:
Hi

you have to bind auto complete in pageload

for this use like the following

function pageLoad() {
 $("#txtAIItem").autocomplete("destroy")

 //bind autocomplete to your textbox here

}

hope this helps

0
 
Seven priceFull StackAuthor Commented:
Not following is
$("#txtAIItem").autocomplete("destroy")

actually
$("#txtquantity").autocomplete("destroy")
0
 
Seven priceFull StackAuthor Commented:
cool
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now