Created
March 21, 2016 12:04
-
-
Save stormbreakers/6547ebb9cf9c063a8ca7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var state = [ | |
| "Andaman and Nicobar Islands", | |
| "Andhra Pradesh", | |
| "Arunachal Pradesh", | |
| "Assam", | |
| "Bihar", | |
| "Chandigarh", | |
| "Chhattisgarh", | |
| "Dadra and Nagar Haveli", | |
| "Delhi", | |
| "Goa", | |
| "Gujarat", | |
| "Haryana", | |
| "Himachal Pradesh", | |
| "Jammu and Kashmir", | |
| "Jharkhand", | |
| "Karnataka", | |
| "Kerala", | |
| "Madhya Pradesh", | |
| "Maharashtra", | |
| "Manipur", | |
| "Meghalaya", | |
| "Mizoram", | |
| "Nagaland", | |
| "Odisha", | |
| "Puducherry", | |
| "Punjab", | |
| "Rajasthan", | |
| "Tamil Nadu", | |
| "Telangana", | |
| "Tripura", | |
| "Uttar Pradesh", | |
| "Uttarakhand", | |
| "West Bengal" | |
| ]; | |
| var state1 = ''; | |
| for(var k=0; k < state.length; k++){ | |
| state1 += '<option value="'+state[k]+'">'+state[k]+'</option>'; | |
| } | |
| document.getElementById('txt_state').innerHTML = state1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment