I need better ways of handling my 2 year old!!

Can you mommy’s please share with me your parenting ways!! In the mornings my son becomes quite rambunctious, especially as I’m dressing him. He wants to jump on the pillows, on the bed etc. So I usually let him do that for a few mins but today he did not want to stop playing. I was running late for work! I had to get aggressive with him to sit him down, that didn’t work, I then spanked his hand because he would not calm down and let me dress him but that STILL didnt work. I know you have to get your child to want to do things so what can I do/ say that will make my child want to get dressed and listen to my cues. Thanks for your help.

I want to find better/ effective ways of dealing with toddler behaviour.