Have you enabled the script invisible element in the Dreamweaver properties panel?
Go to Edit -> Preferences. Select the Invisible Elements category and check "Scripts", then click OK.
Next to the menu on your page, you should see a new shield icon representing a script. Select that shield icon and the edit button should show in the properties inspector.