Place the sliced cucumbers and onions in a large mixing bowl. Sprinkle salt over them, toss to coat, and let them sit for about 1 hour to draw out excess moisture.
After the hour, drain the cucumbers and onions in a colander and rinse them under cold water. Shake off excess water and set aside.
In a medium saucepan, combine granulated sugar, apple cider vinegar, mustard seeds, celery seeds, ground turmeric, and red pepper flakes (if using). Heat over medium heat, stirring until the sugar dissolves and the mixture comes to a gentle boil.
Once boiling, add the drained cucumbers and onions to the saucepan. Stir well to combine and return to a gentle boil. Cook for about 10 minutes, stirring occasionally.
Remove the saucepan from heat and allow the mixture to cool slightly. Using a canning funnel (if available), spoon the pickles into sterilized glass jars, leaving about ½ inch of headspace at the top.
Seal the jars with their lids and allow them to cool to room temperature. Then, refrigerate the jars for at least 24 hours before using to let the flavors meld together.
Enjoy your homemade Bread and Butter Pickles on sandwiches, burgers, or as a tangy snack!