prevent parent page from loading inside jquery dialog box on button click
<p>I have a jquery dialog box that loads a php file (shopping_cart_temp.php) via ajax. The php file has 3 ajax buttons, remove, add 1, or minus 1. The href for all 3 buttons is #. The problem is, when I click on any of the 3 ajax buttons, the parent page loads inside the jquery dialog box instead of completing the ajax button action. After doing some research I found that it could be because event.preventDefault or onclick=return false; are not present or not working. I can see this question or similar questions has been asked many times, but each solution I tried didn't work for me. Can you help me solve this please?</p>

<pre><code> $info_box_contents[$cur_row][] = array('align' =&gt; 'center',
                                         'params' =&gt; 'class="productListing-data" valign="middle"',
                                         'text' =&gt; tep_draw_checkbox_field('cart_delete[]', $products[$i]['id']) .
                                         '&lt;a class="cart-remove" style="visibility:hidden;" href="#" rel="' . $products[$i]['id'] . '"&gt;'
                                         . tep_image(DIR_WS_ICONS . 'cancel.png', TABLE_HEADING_REMOVE) . '&lt;/a&gt;' .
                                         '&lt;span style="display:none;" id="pn-' . $products[$i]['id'] . '"&gt;' .
                                         '&lt;a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"&gt;' . $products[$i]['name'] . '&lt;/a&gt;&lt;/span&gt;')  ;
</code></pre>
