Trismus in parapharyngeal abscess is due to spasm of:
Styloid process divides the pharynx into anterior and posterior compament. Trismus occurs in infection of anterior compament whereas toicollis (due to spasm of paraveebral muscles) occurs in the infection of posterior compament.
Masseter muscle
Medial pterygoid
Lateral pterygoid
Temporalis