funeralcrasher: (Default)
So is there a way for Javascript to detect when a textbox changes, before onBlur?

I thought onChange would work, but it seems to act just like onBlur: http://www.sunybroome.edu/~hinton_r/js/blurchangeframe.html (comparison of onBlur and onChange in same page)


Date: 2008-04-10 04:20 am (UTC)From: [identity profile] pkbarbiedoll.livejournal.com
I ended up with onKeyPress to check to see if the textarea is blank. It works perfectly for my needs.

Date: 2008-04-10 02:55 pm (UTC)From: [identity profile] bedivere.livejournal.com
Ah.. right on then. I used that once for a client that wanted all input values to db saved to the database in all uppercase (for reasons too inane to go into), so I hadda trap that and convert character typed to uppercase.

Profile

funeralcrasher: (Default)
funeralcrasher

June 2020

S M T W T F S
 123456
78910111213
141516 1718 1920
21222324252627
282930    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 30th, 2025 06:05 pm
Powered by Dreamwidth Studios