I have a checkbox on my page with a unique id of 'myCheckboxName'. I have a div further down the page that is absolutely positioned, with a div id of 'myDiv'. I need to adjust the 'left' position from '649px' to '598px' of 'myDiv' depending on if the checkbox is checked or not.
checked = left: 598px
unchecked = left: 649px
I need to do the same with a dropdown menu with an id of 'myDropdown'. If a specific option is selected in the menu, it should change the position of 'myDiv' to a specified absolute position.