Hey guys, this is my first time using jQuery. I'm working on a simple Twitter app that checks whether a user is following another user, but I'm having trouble picking up on the inputted values in my form.
I've got this form on my page:
<form id="form_friendship">
Is <input type='text' name='user_a' value='username'/> following <input type='text' name='user_b' value='username'/> on Twitter? <input type="submit" value="Check">
</form>
And using the form plugin, here's my JS:
var value = $('#form_friendship *').fieldValue( );
$('#form_friendship *').submit(alert(value));
The only thing that's being alerted is "username, username" and it's not registered text inputted into the fields at all. Any ideas on what's wrong here? Thanks