Let A be m x n matrix over a field F. Show that the Smith Normal Form of A is :

[I_r 0] = D(1,.......,1,0,..,0) where r = r(A) = rank of A
[0 0] <---r--->

This question is not hard but I just know that every element in F has inverses.
Can you give me some hints please?

Thank you