i'm attempting to put a value from a text box into a variable
text box looks like so:
<input type="text" size="30" name="group1name" value="Group 1" id="g1n">
pulling looks like so:
var group1name = $('#g1n').attr('value');
it will pull "Group 1" but if i change the text box it still pulls "Group 1" how can i make it pull the CURRENT value of the text box?