[web2py] Re: jquery effect

2011-06-01 Thread Ross Peoples
I'm not exactly sure what's going here, but at first glance, this is what I 
see:

I think you are using attr() wrong. In the first section of code, you are 
checking the 'Protected' attribute, but in the second block of code, you are 
setting an 'onchange' attribute to the value of 'Protected', Maybe this 
should read attr('Protected', true) instead?

Re: [web2py] Re: jquery effect

2011-06-01 Thread Stifan Kristi
thank you so much for your hints, i'm using select input with 3 options,
public, private and protected, on the form. so when user choose the
protected value the field password will appears. i just modified what was
written on the book. any idea?

thank you so much in advance.


On Thu, Jun 2, 2011 at 12:07 AM, Ross Peoples ross.peop...@gmail.comwrote:

 I'm not exactly sure what's going here, but at first glance, this is what I
 see:

 I think you are using attr() wrong. In the first section of code, you are
 checking the 'Protected' attribute, but in the second block of code, you are
 setting an 'onchange' attribute to the value of 'Protected', Maybe this
 should read attr('Protected', true) instead?