Anti dandruff shampoo for cradle cap?

E
I was reading in a book to use an anti dandruff shampoo on babies head to help clear up cradle cap. Has anyone tried this and does it work? What other things work to help?