Jump to content

Enable Input Tag?


Northern Flame

Recommended Posts

I have a function that either enables or disables an input tag when clicked on.

I know how to disable the tag but how can i enable it?

 

heres my code:

function activateSubmit(){
var state = document.forms['register'].agree.value;

switch(state){
	case 0:
		document.forms['register'].agree.value=1;
		document.forms['register'].submit.disabled="no"; // Heres where i want to enable it!
	break;
	case 1:
		document.forms['register'].agree.value=0;
		document.forms['register'].submit.disabled="disabled";
	break;
}
}

 

the code above works when i want to disable the input tag,

but how do i enable it?

Link to comment
https://forums.phpfreaks.com/topic/94622-enable-input-tag/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.