Note that there are some explanatory texts on larger screens.

plurals
  1. POObject [object Object] has no method 'live'
    primarykey
    data
    text
    <p>these are my js files of my project:</p> <pre><code>tablequerywrapper.js gauge.min.js Functions.js colortip-1.0-jquery.js ObjectivesFunctions.js jquery.bxslider.js </code></pre> <p>in: <code>Functions.js</code>, I have:</p> <pre><code>$('li div[id^="objective_option_conversion_points_"]').click(function () { alert('3'); } $('#sortedPixels tbody').sortable({ items: '&gt; tr', forcePlaceholderSize: true, placeholder: 'must-have-class', start: function (event, ui) { // Build a placeholder cell that spans all the cells in the row var cellCount = 0; $('td, th', ui.helper).each(function () { // For each TD or TH try and get it's colspan attribute, and add that or 1 to the total var colspan = 1; var colspanAttr = $(this).attr('colspan'); if (colspanAttr &gt; 1) { colspan = colspanAttr; } cellCount += colspan; }); // Add the placeholder UI - note that this is the item's content, so TD rather thanTR ui.placeholder.html('&lt;td colspan="' + cellCount + '"&gt;&amp;nbsp;&lt;/td&gt;'); } }).disableSelection(); </code></pre> <p>I ran it and got:</p> <pre><code>Uncaught TypeError: Object #&lt;Object&gt; has no method 'sortable' </code></pre> <p>I read that this error is because I need <code>JQUERY UI</code>, so I added:</p> <pre><code>&lt;script src="http://code.jquery.com/jquery-1.9.1.js"&gt;&lt;/script&gt; &lt;script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"&gt;&lt;/script&gt; </code></pre> <p>and the error is gone. but when I pressed a div that has an id = "objective_option_conversion_points_1", nothing is happened.</p> <p>so I tried:</p> <pre><code>$('li div[id^="objective_option_conversion_points_"]').on('click', function () { alert('3'); } </code></pre> <p>but nothing is happened.</p> <p>so I tried:</p> <pre><code>$('li div[id^="objective_option_conversion_points_"]').live('click', function () { alert('3'); } </code></pre> <p>but then I got another error:</p> <pre><code>Uncaught TypeError: Object [object Object] has no method 'live' </code></pre> <p>how can I solve it please?</p> <p>p.s.</p> <p>in my jsfiddle, it works:</p> <pre><code>http://jsfiddle.net/alonshmiel/adpFV/7/ </code></pre> <p>any help appreciated!</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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