What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-02 23:51:14
how to get href value of anchor tag in jquery
<div class="getval"> <a href="https://wlearnsmart.com/">W learn Smart</a> </div> <script type="text/javascript"> $(document).ready(function() { $('.getval a').click(function() { ... Add solution -
Javascript 2022-02-02 20:21:22
how to use javascript to hide content and show through link
$(document).ready(function() { $('li').click(function () { $('.content:visible').hide(); // hides the visible content before $('.content').eq($(this).index()).show(); // shows the corresponding content }); }); Add solution -
Javascript 2022-02-02 09:42:08
external javascript files can be cached
$(document).ready(function() { var e = document.createElement("script"); e.src = "//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"; var t = document.getElementsByTagName("script")[0]; t.parentNod... Add solution -
Javascript 2022-02-01 21:56:26
datatables column freeze
$(document).ready(function() { var table = $('#example').DataTable( { scrollY: "300px", &... Add solution -
Javascript 2022-02-01 20:55:15
$(document).ready(function() { $(".menu-icon").on("click", function() { $("nav ul").toggleClass("showing"); }); });
$(document).ready(function() { $(".menu-icon").on("click", function() { $("nav ul").toggleClass("showing"); }); }); Add solution -
Other 2022-02-01 02:51:14
Zoom image using html js php
<div id="gridview"> <div class="heading">Zoom for Product Images in PHP Shopping Cart</div> <?php $query = $db_handle->runQuery("SELECT * FROM tbl_products ORDER BY id ASC"); if (! empt... Add solution -
Javascript 2022-02-01 00:51:34
add active class to button onclick jquery
/* CSS: .active{ background-color: red; color: #fff; font-weight: bold; } */ /* Before Execution*/ <button class="my-btn">Login</button> $(".my-btn").click(function() { $(this).addClass("active"... Add solution
Best helpers
Ranking is empty