Jump to content

Disabled = true only partially working


MichaelMackey

Recommended Posts

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

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.