[Drupal] How to use ajax_command_replace? Drupal Technical | 2 min read To replace a div by another on submitting a form always used to top the list of requirements. So I've choose to share how to use a handy command provided by ajax to replace a particular div by another.