I'm creating a quick validation through ajax for new usernames. I had the whole thing working correctly but I've decided to change it from checking onkeyup to clicking an href link.
So I need a way to get the data from a <input> to href="checkUser(this.Value)" to send to my script.
Maybe I'm totally missing something here, but why don't you put an event listener on the link that will fire the exact same function that your keyup event is firing. You can pass the target field as an argument of the function, so that your function can be reused without having to hard-code all the fields you need in it.
Doh. I was just over thinking this and was looking at code too long.
I read the post that you deleted. That is why I mentioned "You can pass the target field as an argument of the function" instead of using "this", but I assume you've figured that out now.
Yes that's what I did. Overthinking it I suppose.