Welcome visitor
* Login
* Register
It is currently May 19th, 2019, 8:20 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » JavaScript



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  disable buttons, keep the inputs
PostPosted: February 11th, 2009, 2:25 am 
User avatar

Posts: 71
Hi,
yes, I wanna disable the buttons on a form but keep the input fields working. Now, the other thing is that the name of the buttons change, so I need something like a loop. Thanks for the help.


Top
 Profile  
 
  Re: disable buttons, keep the inputs
PostPosted: February 11th, 2009, 2:39 am 
User avatar

Posts: 81
object = document.form1.getElementsByTagName("INPUT");
for (i=0; i<object.length; i++){
  if ( object[i].type == 'button' )
    {object[i].disabled=true;}
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » JavaScript


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron