Scroll to top

## scroll to top:: <style type=”text/css”> #plz-ridemeto-top{position:fixed;bottom:20px;right:10px;cursor:pointer;display:none;} </style> <script> $(‘body’).append(‘<div id=”plz-ridemeto-top” class=”btn btn-info”><span class=”glyphicon glyphicon-chevron-up”></span></div>’); $(window).scroll(function () { if ($(this).scrollTop() != 0) { $(‘#plz-ridemeto-top’).fadeIn(); console.log(“scrolled”); …

Read More

On click div change it child css in jquery

## On click “.xc-category” , Finds <div class=”catbox”>  in “.xc-category” and changing the background-color  <script> $(“.xc-category”).click(function(){ var dis = this; $(“#Step1″).find(‘div.catbox’).css(‘background-color’,”); $(dis).find(‘div.catbox’).css(‘background-color’,’#C3E7FF’); }); </script>

Read More