If you plan to keep onions for longer than a day after cutting them you should place the cut onion or cut onions into a sealed container and then refrigerate the onions in the container.
When the onions are in a sealed container in the refrigerator the cut onions should last up to 7 days before going bad.