Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

Jordan Santell's Profile

GitHub User: jsantell


Comments by Jordan Santell


$('#card_number').length is returning the size of the jQuery collection -- just selecting an ID, so yes, the length will be 1.

$('#card_number').val() is the value currently which the input field is currently holding