Find all files (type f) with either a .txt or .jpg extension (iname) and move (mv) them to the target directory (/target/directory/) in one command (exec).
find . -type f \( -iname '*.txt' -o -iname '*.jpg' \) -exec mv -t /target/directory/ {} +