Note that there are some explanatory texts on larger screens.

plurals
  1. POI-Button jQuery Check Box
    primarykey
    data
    text
    <p>I'm attempting to use the following jQuery code for check boxes for my website. </p> <p><a href="http://www.givainc.com/labs/ibutton_example.htm" rel="nofollow">I-Button Example</a></p> <p><a href="http://www.givainc.com/labs/ibutton_jquery_plugin.htm#options" rel="nofollow">I-Button jQuery Plugin</a></p> <p>I have 2 javascript files, one which comes with the plug-in above and another .js file which performs calculations for site estimating.</p> <p>I have a function within my site estimating file which calls the #selector of the checkbox </p> <p>The Html:</p> <pre><code>&lt;h6 class="R_C-first R_C"&gt;Image Gallery &lt;input id="R_C-imgGalleryPrice" readonly="readonly" class="R_C" type="text" /&gt; &lt;/h6&gt; &lt;div class="row"&gt; &lt;label class="label" for="ex01"&gt;Default Off&lt;/label&gt; &lt;input type="checkbox" id="R_C-imgGallery" name="imgGallery"/&gt; &lt;/div&gt; &lt;input id="R_C-imgGalleryPrice2" readonly="readonly" class="R_C-floatRight R_C-width60 R_C" type="text" /&gt; </code></pre> <p>The Function:</p> <pre><code> $R_C_imgGalleryPrice.val("(" + currency + imgGalleryPrice + ")"); $R_C_imgGalleryPrice2.val(currency + 0); $R_C_imgGallery.click(function () { if ($R_C_imgGallery.is(':checked')) { $R_C_imgGalleryPrice2.val(currency + imgGalleryPrice); var total = parseInt($widgetsPrice.val()); $widgetsPrice.val(total + imgGalleryPrice); $("#R_C-imgGalleryPrice2, #R_C-imgGalleryPrice, #R_C-imgGalleryAdded").addClass('R_C-added'); $("#imgGalleryHidden").val('Yes'); } else {$R_C_imgGalleryPrice2.val(currency + 0); var total = parseInt($widgetsPrice.val()); $widgetsPrice.val(total - imgGalleryPrice); $("#R_C-imgGalleryPrice2, #R_C-imgGalleryPrice, #R_C-imgGalleryAdded").removeClass('R_C-added'); $("#imgGalleryHidden").val('No'); } }); </code></pre> <p>Here's where the Problem starts....When I add the I-Button .js file the code above will not execute any longer. No obvious errors are thrown in the browser.</p> <p>As for the I-Button checkbox they are functioning just fine...</p> <p>As for the check boxes they are all within a form tag and many different check boxes. </p> <p>I dont know enough about jQuery yet to understand the problem fully. It seem like I need to Bind/pass the 2 function together somehow. I-Button instructs users to run the options through its function but its rather confusing to me at the moment. </p> <p>One thing is obvious the I-Button function has taken priority over the estimation.js file.</p> <p>Help would be greatly 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.
    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