Answer:
They attach due to the attraction of charges.
When the ebonite rod is rubbed with silk, the rod will aquire a negative charge and the silk will aquire a positive charge.
Thus they will attract.
_____________________________