How to edit PDF JavaScript code?

Hi techyv,
How to edit pdf javascript code? I downloaded some pdf files that contain javascript code from a friend. Is there a way that I can edit the javascript codes in the pdf file? I can’t seem to find the edit button that will allow the user to add or change some written text in the form.
Hoping for your help. Thanks.
