Skip to content

Instantly share code, notes, and snippets.

View HosMercury's full-sized avatar

Hos.Mercury HosMercury

View GitHub Profile
HosMercury / gist:7a5be9ab926c24b53aa00fb81fdbc4ca
Created November 24, 2022 05:04
Incrementing a class in jquery
$(document).ready(function () {
let cartoonsCounter = 1;
let serialsCounter = 1;
const cartoon = `<div class="c-${cartoonsCounter}-wrapper rounded bg-gray-50">
<input type="text" required class="c-${cartoonsCounter} w-80 text-center flex flex-col">
<div class="serials mx-40">