Note that there are some explanatory texts on larger screens.

plurals
  1. POJQuery - Refresh Div With Data, Not Working with IE
    primarykey
    data
    text
    <p>Updated .....</p> <p>I am new with JQuery and I am stuck on this and hoping someone can help me. What I am trying to do is refresh the data in the DIV without reload entire page. The because the page is huge, I am trying to summarize this.</p> <pre><code>--- This form is right after the body, not wrab with DIV or anything, no submit button. I want to submit the value in the textbox when user hit ENTER key. &lt;form name="form1" id="form1" method="post" action="PurchaseRequestList.asp"&gt; &lt;input type="text" name="CompanyName" id="CompanyName" value="" class="box2"&gt; &lt;/form&gt; --- Below the form is the DIVs, where I like to refresh the data everytime user enter in the CompanyName textbox and hit Enter key. &lt;div id="div1-wrapper"&gt; &lt;div id="div1" style="border:solid 1px red; width: 100%;"&gt; &lt;table width="90%" align="center" class="RowDetail"&gt; &lt;-- This is where the loop using ASP to display the data --&gt; &lt;/table&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>So far, I have this code, but it is not working as refresh only data within the DIV.</p> <pre><code>$(document).ready(function() { $('#CompanyName').on('keypress', function(e) { if (e.keyCode == 13) { var data = $('form').serialize(); $.ajax({ method: 'post', data: data, url: 'PurchaseRequestList.asp?#div1', success: function(res) { $('#div1-wrapper').load(url + ' #div1'); } }); } }); }); </code></pre> <p>I appreciated you guys are trying to help. Let me know if you need me to clarify any.</p> <p>Thank you,</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload