Posts

Showing posts from November, 2017

JQuery - Export to Excel

<script type="text/javascript">     $(document).ready(function () {         $("#btnExport").click(function (e) {             window.open('data:application/vnd.ms-excel,' + $('#example').html());             e.preventDefault();         });     }); </script> <input type="button" id="btnExport" value=" Export Table data into Excel " />

JQuery - Calculation : + ADD - SUBSTRACT

<h2>* All prices are in $USD</h2> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" type="text/javascript"></script> <div name="stillrender" style="width:100%;border-bottom: 1px solid grey;float: left;margin-bottom: 2%;"> <h1>Still Renders</h1> <div class="quantity" style="float: left;"> <h2>Quantity</h2> <br> <input type="text" name="stillquantity" id="stillquantity"/> </div> <div class="quality" style="float: left; padding-left: 3%;"> <h2>Unit Price</h2> <span>$1500</span> </div> <div class="stilltottal" style="float: right;"> <h2>Total</h2> <br> <input name="stilltottal" id="stilltottal" /> </div> </div> <div name="animation" style="wid...

ASP.net - CheckListBox & JQuery Validation

     <asp:CheckBoxList ID="FamilyMemberCheckBoxList" runat="server" required = "required" ForeColor="Blue" Visible="false">      </asp:CheckBoxList> <script type="text/javascript">     function ValidateCheckBoxList(sender, args) {         var checkBoxList = document.getElementById("<%=FamilyMemberCheckBoxList.ClientID %>");         var checkboxes = checkBoxList.getElementsByTagName("input");         var isValid = false;         for (var i = 0; i < checkboxes.length; i++) {             if (checkboxes[i].checked) {                 isValid = true;                 break;             }         }         args.IsValid = isValid;     } </script>