title: Activate function once 12 characters are entered into text box
body: <p>I am new to MVC 4 and making an internet application that uses a hand scanner to fill a text box. I was hoping to have it automatically activate a JavaScript function once the barcode has been scanned.</p>
  
  <p>Scanning the barcode fills the active textbox with 12 characters,  and I currently have to click a button after each scan. Is there a way to automatically activate the button or JavaScript function after the barcode is scanned, or after the 12th character is entered?</p>