code_junkie

Why does the javascript onchange event not fire if autocomplete is on?

Nov 12th, 2011
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. <input type="text" name="txtTest" value="" onfocus="this.originalvalue=this.value" onblur="if (this.value != this.originalvalue) alert('Test has changed')"/>
  2.  
  3. 'Turn off Auto complete
  4. '(it needs to fire the text change event)
  5. txtYourTextBox.Attributes.Add("AutoComplete", "off")
Add Comment
Please, Sign In to add comment