Man charged with attempted murder of toddler