JSFiddle - React, Tailwind, and code Playground

by jestho

JavaScript

var $matchTarget = '#' + $this.attr('data-input-match');

// Denne funker
if ( $this.val() !== $($matchTarget).val() ) { … }

// Denne gir #regPwd has no method 'val'.
if ( $this.val() !== $matchTarget.val() ) { … }