You can attract butterflies to your yard by planting flowers. You can buy packets of seeds at your local garden store. Then find a sunny spot and follow the directions on the seed packet for planting. In a few months, when the flowers bloom, you will find butterflies visiting your garden and sipping nectar from the flowers.
Learn about raising painted lady butterflies in my book Butterflies in Room 6: See How They Grow.