Actually, use "onkeyup" instead of "onkeypress" - the onkeypress event seems to need an extra keypress to update the checkbox (at least, on FF10 and ie7/8). onkeyup works as expected.
On 07/19/2012 11:29 AM, Stephan Beal wrote: > On Thu, Jul 19, 2012 at 8:28 PM, Stephan Beal <[email protected] > <mailto:[email protected]>> wrote: > > On Thu, Jul 19, 2012 at 8:26 PM, Steve Havelka <[email protected] > <mailto:[email protected]>> wrote: > > Would something simpler do the trick? > > Like this - http://pastebin.com/7k2B5iW9 > > > That's 90% of it, but ignores the special case of the user > emptying the value (that case probably increases the code by 8x ;). > > > Again too soon... > > <input > type="text" id="text" onkeypress="document.getElementById('check').checked > = !!this.value"/> > > :-D > > i'll wedge that in over the weekend if i don't forget. > > -- > ----- stephan beal > http://wanderinghorse.net/home/stephan/ > http://gplus.to/sgbeal > > > > _______________________________________________ > fossil-users mailing list > [email protected] > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
_______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

