Skip to content
Advertisement

Tag: difference

Find difference between two strings in JavaScript

I need to find difference between two strings. The expected output is to find the extra n and log it to the console. Is there any way to do this in JavaScript? Answer Another option, for more sophisticated difference checking, is to make use of the PatienceDiff algorithm. I ported this algorithm to Javascript at… https://github.com/jonTrent/PatienceDiff …which although the algorithm

form submit jquery v javascript difference

in javascript this works fine and the validateForm function fires but why doesnt a similar implementation of the same code in jquery not work? This is what I would like to do after reading http://api.jquery.com/submit/ the following code works why does the submit method require a function to wrap around the code im trying to fire. why can i not

Advertisement