Combine the cucumbers, onions, and salt.
Cover and refrigerate for 3 hours, stirring often.
In a small saucepot, dissolve the sugar in the vinegar over medium heat. Allow mixture to cool.
Drain the cucumbers and onions and rinse.
Combine the vinegar mixture with the cucumbers and onions. Pour into jars. Store in the refrigerator.