0752 - 340 - 6145 info@mattzajac.co.uk
  • Facebook
  • Twitter
  • Google
  • Facebook
  • Twitter
  • Google
Freelance Web Developer Manchester | SEO Consultant
  • Home
  • Web Design
    • Website Development
    • WordPress Help and Support
    • eCommerce Consultancy
  • SEO Services
    • SEO Consultancy
  • My Work
  • Blog
  • Contact Me
  • Emergency Help
Select Page

How to replace HTML element in jQuery (replaceWith)

by matt | May 25, 2016 | Javascript / Jquery

Here is a simple example and explanation of finding and replacing a html element using jquery syntax: $(selector).replaceWith(content,function(index)) simple example: $(“div.replacehere”).replaceWith(“<H1>The new content</H1>”);...

How to find & replace link using Jquery

by matt | Dec 15, 2014 | Javascript / Jquery, Uncategorized

$(“#menu-item-999 > a”).attr(“href”, “http://www.newaddres.com”);  

How to check the existence of an element – jquery

by matt | Oct 1, 2014 | Javascript / Jquery, Uncategorized

// check if element exists if($(‘selector’).length){ //do something } // check if element does not exist if(!$(‘selector’).length){ //do something }  

How to swap elements within container using jQuery

by matt | Sep 26, 2014 | Javascript / Jquery, Uncategorized

HTML: <ul id=”Items-container”> <li>1111</li> <li>2222</li> <li>3333</li> <li>4444</li> <li>5555</li> </ul>     jQuery snippet: var swapElements = function(siblings,...

how to move the last element to the first position within the container – jQuery

by matt | Sep 26, 2014 | Javascript / Jquery, Uncategorized

In order to move the last element of the first position within the container we can use prepend jQuery command. Please see the following examples :   <ul class=”list-container”> <li>first item will go to the end</li> <li>second...

How to run jQuery snippet only once per browser session?

by matt | Sep 25, 2014 | Javascript / Jquery, Uncategorized

Wrap your jquery code with the following:   if (!sessionStorage.alreadyShown) { …. yourFunctionOrCodeHere(); …. sessionStorage.alreadyShown = “true”; }  
« Older Entries

Categories

  • Bootstrap
  • eCommerce
  • HTML / CSS
  • Internet Marketing
  • Javascript / Jquery
  • Other
  • PPC
  • Prestashop
  • SEO
  • SQL
  • Uncategorized
  • Websites
  • WordPress

Recent Blog Posts

Tag Claud

SQL

Matt Zajac
Full time Freelance Web Developer / Designer and SEO Consultant based in Manchester, UK

Recent Posts

  • How to Modify the Subject of Divi Contact Form Emails to Prevent Gmail Stacking and be More User-Friendly
  • How to permanently redirect old domain to the new one via htaccess file
  • The best Chrome Extensions For Web Developers and SEO Consultants
  • Shopify – How to spy on your competitors and see their best selling products
Freelance Web Designers in the UK

My Address

Matt Zajac
26 Brookhey
Hyde,
Greater Manchester
SK14 2DY

Phone: +44(0)752 340 6145

  • Cookie Policy
  • Privacy Policy
  • Terms of Service
  • Facebook
  • Twitter
  • Google

©Copyright 2021 – Matt Zajac | Top Rank Studio Ltd – All rights reserved. Registered in England no. 10058943

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.Accept Read More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT