I have the view like this using plugin and still didn't work (insert values 
in the database). Any thoughts?


{{extend 'layout.html'}}

{{=form}}

<script>
$(document).ready(function() {
   $("form").submit(
     function() { 
     $("[name=rating]").removeAttr("disabled");
     }
   );
   
});
</script>



On Monday, February 11, 2013 at 5:08:43 AM UTC-5, Alan Etkin wrote:
>
> Here is the code that worked for me when added to the view. ...
>>
>
> Good catch, I should have added the .ready call to wait until the form 
> element is available.
>
> The rating plugin worked without this. We could fix the plugin script so 
> there's no need for the workaround. 
>  
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to