Jump to content

Disable and enable text fields


Flying35

Recommended Posts

Hello phpfreaks,

 

I try to make buttons witch can enable text field that are disabled. But it doesn't work when I'm working with variables.

 

while (list($id,$naam,$voorraad,$bestelgrootte,$doelvoorraad,$prijs,$aantal,$wijzig) = mysql_fetch_row($res)) 
$inkvm .= 	"<tr><td>".$id.
		"</td><td>".$naam.
		"</td><td>".$voorraad.
		"</td><td>".$bestelgrootte.
		"</td><td>".$doelvoorraad.
		"</td><td>".$prijs.
		"</td><td>
		<form name='".$id."'>
				<input type='text' value='".$aantal."' name='".$id."' size='2' disabled='disabled'/>
			</form>
		</td><td>
		<input type='button' value='Aanpassen' OnClick='document.".$id.".".$id.".disabled=false;'/>
		</td></tr>";

Does someone know why this isn't working? already thanks.

Link to comment
https://forums.phpfreaks.com/topic/251977-disable-and-enable-text-fields/
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.