Loader issue

Loader is not working proper…
I have form with text-box and button. After clicking on button loader will start displaying and content is still editable.

I want, while showing loader the content of that page should disable. When loader will hide then content should enable.