What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-19 20:30:03
get parent element using jquery
$(this).parent(); // jquery Add solution -
Html 2021-09-18 06:36:03
date range picker select date and several weeks
<script type="text/javascript" src="https://cdn.jsdelivr.net/jquery/latest/jquery.min.js"></script> <script type="text/javascript" src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></... Add solution -
Javascript 2021-09-16 03:19:04
$(document).ready(function() { $(".more-items").click(function() { $(this).parent().find(".more").slideToggle(); }); });
$(document).ready(function() { $(".more-items").click(function(){ $(this).parent().find(".more").slideToggle(); }); }); Add solution -
Javascript 2021-09-06 19:19:01
click and copy jquery dynamic content
Works great with Dynamically created list. Reading in from a database. <style type="text/css"> .fw-code-copy { display: block; position: relative; width: 400px; height: 30px; background: #FFE; border: thin solid #FF0; margin... Add solution -
Other 2021-08-30 20:31:01
styles for parent of selector
/* There is no such selector in 2008, the following was suggested */ a < img { 'border': none } /* Which in theory, would set an an images 'a' parent border to none Of course, this does not exist Another suggestion... */ div:parent { 'b... Add solution -
Javascript 2021-08-27 14:12:02
jquery div hide show not working in wordpress
jQuery(document).ready(function($) { $('#menu-links li a').click(function() { //fetch the class of the clicked item var clickedClass = $(this).attr('class'); //reset the active class on all the buttons $('#menu-links li').removeClass('ac... Add solution