I have found that most solutions only remove the attribute setting rather than removing the attribute entirely. My goal is to switch the positioning of an element from absolute to fixed. In order to position the element correctly within its parent DIV, I need to remove the right positioning attribute and replace it with margin-right. Without removing the right attribute, the element extends all the way to the right of the screen instead of positioning it to the right of the DIV as desired. Does anyone have any suggestions on how to achieve this?