Question : how can I set all inputs to readonly in jquery?

Hello guys

When I open my page I'd like to set all inputs to readonly, how can I do this?

thanks

Answer : how can I set all inputs to readonly in jquery?

By class...

$(".className").attr('readonly','readonly');
Random Solutions  
 
programming4us programming4us