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(); }'; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.