MichaelMackey Posted June 24, 2008 Share Posted June 24, 2008 Hi, I'm confused as to why my "disabled = true" is not working in the second function. It works fine in the first function, and the second function will perform all of it's assignments, but it seems to skip right by the disabled = true part. Any help is appreciated, thanks. Michael. echo 'function edit_picture(idval, album, image, desc){ document.editForm.pop_id.value = idval; document.editForm.pop_album_name.value = album; document.editForm.pop_album_name.disabled = true; document.editForm.pop_image_name.value = image; document.editForm.pop_description.value = desc; document.editForm.pop_type.value = "image"; show_reg_popup(); }'; echo 'function edit_album(idval, album, image, desc){ document.editForm.pop_id.value = idval; document.editForm.pop_album_name.value = album; document.editForm.pop_album_name.disabled = true; //This line document.editForm.pop_image_name.value = image; document.editForm.pop_description.value = desc; document.editForm.pop_type.value = "album"; show_reg_popup(); }'; Link to comment https://forums.phpfreaks.com/topic/111736-disabled-true-only-partially-working/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.