The board of library trustees may, when in its judgment it is deemed advisable, and upon the petition of 50 or more taxpayers residing within the library district shall, call an election and submit to the electors of the library district the question of whether the bonds of the library district shall be issued and sold for any or all the purposes of this chapter.