Skip to content

Instantly share code, notes, and snippets.

View jared201's full-sized avatar
🎯
Focusing

Jared Odulio jared201

🎯
Focusing
View GitHub Profile
@jared201
jared201 / gist:493f134e3d86e517a6355372d8e3cd30
Created December 3, 2018 22:05
To get the HTML string content with JQuery
let targetHTML = $(targetSnippet).html();
@jared201
jared201 / form_validation.html
Created July 23, 2024 01:56
Form validation on keystroke
<!DOCTYPE html>
<html>
<head>
<title>Alphanumeric Input Validation</title>
<script>
document.addEventListener("DOMContentLoaded", function() {
var inputField = document.getElementById("alphanumericInput");
inputField.addEventListener("keypress", function(event) {
var regex = /^[a-zA-Z0-9]+$/;