It is always a good practice to share the codes that you have tested to ensure accuracy and help others assist you quickly.
This code tester is available for HTML, CSS, JavaScript and jQuery codes.
Place the jQuery code within the wrapper $(function () { jQuery code goes here! });
Please report any issues HERE

HTML

CSS

JavaScript

Run the code