發表文章

Pattern not working with readonly attributes

圖片
up vote 0 down vote favorite I have this form where user need to submit the num of days and it cannot be less than 1. So, I put a pattern there and with read only attribute. My question is, why the pattern is not working when I put the readonly attribute? Let say, the numofdays is zero, supposedly when I submit, it will say the pattern is not match. But, when I put the readonly, the pattern is not working and the form is submitted even if the pattern is not correct. Is there any way that I can do this? HTML <form> <input class="form-control" type="text" name="numofdays" id="id1" value="diffdays" pattern="[1-9]" title="No of days should not be less than 1" readonly> <input type="submit" value="Submit" class="btn bt...

Cossacks

圖片
Not to be confused with Kazakhs. For other uses, see Cossacks (disambiguation). Not to be confused with Cassock. Part of a series on Cossacks Cossack hosts Amur Astrakhan Azov Baikal Bashkir  [ru] Black Sea Buh Caucasus Danube Don Free Greben Kuban Orenburg Red Nazi Cossacks SS Semirechye Siberian Terek Ural Ussuri Volga Zaporozhian Other groups Albazinan Turkish Danube Jewish Tatar Nekrasov Persian History Registered Cossacks Kosiński Uprising Nalyvaiko Uprising Khmelnytsky Uprising Hadiach Treaty Hetmanate Colonisation of Siberia Bulavin Rebellion Pugachev's Rebellion Communism Decossackization Cossacks Petro Doroshenko Bohdan Khmelnytsky Petro Sahaidachny Ivan Mazepa Yemelyan Pugachev Stepan Razin Ivan Sirko Andrei Shkuro Pavlo Skoropadskyi Yermak Timofeyevich Ivan Vyhovsky Vitaly Primakov Cossack terms Ataman Chupryna Hetman Kontusz Papakhi Plastun Yesaul Stanitsa Shas...