D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
proc
/
self
/
root
/
home
/
shubmkcj
/
urbane.createerp.com
/
Filename :
edit_new_contact.php
back
Copy
<?php ob_start(); session_start(); include 'config.php'; $login = $_SESSION['login_email']; if($login == ''){ echo '<script>location.replace("index.php")</script>'; } $id = $_GET['id']; ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Invoice Management | Invoice</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <meta content="A fully featured admin theme which can be used to build CRM, CMS, etc." name="description" /> <meta content="Coderthemes" name="author" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <!-- Font Awsome --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <!-- App favicon --> <link rel="shortcut icon" href="assets/images/favicon.png"> <!-- Pie Chart Css --> <link href="assets/pie charts/style.css" rel="stylesheet" type="text/css" /> <!-- App css --> <link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link href="assets/css/icons.css" rel="stylesheet" type="text/css" /> <link href="assets/css/metismenu.min.css" rel="stylesheet" type="text/css" /> <link href="assets/css/style.css" rel="stylesheet" type="text/css" /> <script src="assets/js/modernizr.min.js"></script> </head> <body> <!-- Begin page --> <div id="wrapper"> <!-- Top Bar Start --> <?php include 'top-header.php'; ?> <!-- Top Bar End --> <!-- ========== Left Sidebar Start ========== --> <?php include 'left-sidebar.php'; ?> <!-- Left Sidebar End --> <!-- ============================================================== --> <!-- Start right Content here --> <!-- ============================================================== --> <div class="content-page"> <!-- Start content --> <div class="content"> <div class="container-fluid"> <div class="row"> <div class="col-12"> <div class="page-title-box"> <h4 class="page-title float-left">Edit Contact</h4> <ol class="breadcrumb float-right"> <li class="breadcrumb-item ">Contact Manager</li> <li class="breadcrumb-item ">All Contact</li> <li class="breadcrumb-item ">View Contact</li> <li class="breadcrumb-item active">Edit Contact</li> </ol> <div class="clearfix"></div> </div> </div> </div> <!-- end row --> <form action="update_add_new_contact.php?id=<?php echo $id; ?>" method="post" role="form" id="myform"> <?php $sql = "SELECT * FROM contact_manager where id = '$id'"; $result = mysqli_query($conn,$sql); if($result){ if(mysqli_num_rows($result) > 0){ while( $row = mysqli_fetch_array($result)){ ?> <div class="card-box"> <div class="row"> <div class="col-md-12"> <div class="form-group"> <label for="exampleInputEmail1">Company Name</label> <input type="text" class="form-control" name="company_name" placeholder="Enter company name" value="<?php echo $row['company_name'] ?>" required> </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="exampleInputEmail1">Contact Person Name</label> <input type="text" class="form-control" name="contact_person" placeholder="Enter contact person name" value="<?php echo $row['contact_person_name'] ?>" required> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="exampleInputPassword1">Designation</label> <input type="text" class="form-control" name="designation" placeholder="Enter designation" value="<?php echo $row['designation'] ?>" required> </div> </div> </div> </div> <?php } } } ?> <?php $i = 0; $sql = "SELECT * FROM contact_address where contact_id = '$id'"; $result = mysqli_query($conn,$sql); if($result){ if(mysqli_num_rows($result) > 0){ while( $row = mysqli_fetch_array($result)){ ?> <div class="card-box"> <div class="row"> <div class="col-md-4"> <div class="form-group"> <label for="exampleInputEmail1">Address</label> <input type="text" class="form-control" name="address[]" placeholder="Enter address" value="<?php echo $row['address'] ?>" required> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="exampleInputPassword1">City</label> <input type="text" class="form-control" name="city[]" placeholder="Enter city" value="<?php echo $row['city'] ?>" required> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="exampleInputPassword1">State</label> <input type="text" class="form-control" name="state[]" placeholder="Enter state" value="<?php echo $row['state'] ?>" required> </div> </div> </div> <div class="row"> <div class="col-md-4"> <div class="form-group"> <label for="exampleInputPassword1">Pin</label> <input type="text" class="form-control" name="pin[]" placeholder="Enter pin" value="<?php echo $row['pin'] ?>" required> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="exampleInputPassword1">Email</label> <input type="email" class="form-control" name="email[]" placeholder="Enter email" value="<?php echo $row['email'] ?>" required> </div> </div> <div class="col-md-4"> <div class="form-group"> <label for="exampleInputPassword1">Phone</label> <input type="text" class="form-control" name="phone[]" placeholder="Enter phone" value="<?php echo $row['phone'] ?>" required> </div> </div> </div> <div class="row"> <div class="col-md-4"> <div class="form-group"> <label for="exampleInputPassword1">Country</label> <select class="form-control country" name="country[]" required> <option value="">--Select--</option> <option value="Afganistan" <?php if($row['country'] == "Afganistan") { echo "selected"; } ?>> Afghanistan</option> <option value="Albania" <?php if($row['country'] == "Albania") { echo "selected"; } ?>> Albania</option> <option value="Algeria" <?php if($row['country'] == "Algeria") { echo "selected"; } ?>> Algeria</option> <option value="American Samoa" <?php if($row['country'] == "American Samoa") { echo "selected"; } ?>> American Samoa</option> <option value="Andorra" <?php if($row['country'] == "Andorra") { echo "selected"; } ?>> Andorra</option> <option value="Angola" <?php if($row['country'] == "Angola") { echo "selected"; } ?>> Angola </option> <option value="Anguilla" <?php if($row['country'] == "Anguilla") { echo "selected"; } ?>> Anguilla</option> <option value="Antigua & Barbuda" <?php if($row['country'] == "Antigua & Barbuda") { echo "selected"; } ?>> Antigua & Barbuda</option> <option value="Argentina" <?php if($row['country'] == "Argentina") { echo "selected"; } ?>> Argentina</option> <option value="Armenia" <?php if($row['country'] == "Armenia") { echo "selected"; } ?>> Armenia</option> <option value="Aruba" <?php if($row['country'] == "Aruba") { echo "selected"; } ?>> Aruba </option> <option value="Australia" <?php if($row['country'] == "Australia") { echo "selected"; } ?>> Australia</option> <option value="Austria" <?php if($row['country'] == "Austria") { echo "selected"; } ?>> Austria</option> <option value="Azerbaijan" <?php if($row['country'] == "Azerbaijan") { echo "selected"; } ?>> Azerbaijan</option> <option value="Bahamas" <?php if($row['country'] == "Bahamas") { echo "selected"; } ?>> Bahamas</option> <option value="Bahrain" <?php if($row['country'] == "Bahrain") { echo "selected"; } ?>> Bahrain</option> <option value="Bangladesh" <?php if($row['country'] == "Bangladesh") { echo "selected"; } ?>> Bangladesh</option> <option value="Barbados" <?php if($row['country'] == "Barbados") { echo "selected"; } ?>> Barbados</option> <option value="Belarus" <?php if($row['country'] == "Belarus") { echo "selected"; } ?>> Belarus</option> <option value="Belgium" <?php if($row['country'] == "Belgium") { echo "selected"; } ?>> Belgium</option> <option value="Belize" <?php if($row['country'] == "Belize") { echo "selected"; } ?>> Belize </option> <option value="Benin" <?php if($row['country'] == "Benin") { echo "selected"; } ?>> Benin </option> <option value="Bermuda" <?php if($row['country'] == "Bermuda") { echo "selected"; } ?>> Bermuda</option> <option value="Bhutan" <?php if($row['country'] == "Bhutan") { echo "selected"; } ?>> Bhutan </option> <option value="Bolivia" <?php if($row['country'] == "Bolivia") { echo "selected"; } ?>> Bolivia</option> <option value="Bonaire" <?php if($row['country'] == "Bonaire") { echo "selected"; } ?>> Bonaire</option> <option value="Bosnia & Herzegovina" <?php if($row['country'] == "Bosnia & Herzegovina") { echo "selected"; } ?>> Bosnia & Herzegovina</option> <option value="Botswana" <?php if($row['country'] == "Botswana") { echo "selected"; } ?>> Botswana</option> <option value="Brazil" <?php if($row['country'] == "Brazil") { echo "selected"; } ?>> Brazil </option> <option value="British Indian Ocean Ter" <?php if($row['country'] == "British Indian Ocean Ter") { echo "selected"; } ?>> British Indian Ocean Ter</option> <option value="Brunei" <?php if($row['country'] == "Brunei") { echo "selected"; } ?>> Brunei </option> <option value="Bulgaria" <?php if($row['country'] == "Bulgaria") { echo "selected"; } ?>> Bulgaria</option> <option value="Burkina Faso" <?php if($row['country'] == "Burkina Faso") { echo "selected"; } ?>> Burkina Faso</option> <option value="Burundi" <?php if($row['country'] == "Burundi") { echo "selected"; } ?>> Burundi</option> <option value="Cambodia" <?php if($row['country'] == "Cambodia") { echo "selected"; } ?>> Cambodia</option> <option value="Cameroon" <?php if($row['country'] == "Cameroon") { echo "selected"; } ?>> Cameroon</option> <option value="Canada" <?php if($row['country'] == "Canada") { echo "selected"; } ?>> Canada </option> <option value="Canary Islands" <?php if($row['country'] == "Canary Islands") { echo "selected"; } ?>> Canary Islands</option> <option value="Cape Verde" <?php if($row['country'] == "Cape Verde") { echo "selected"; } ?>> Cape Verde</option> <option value="Cayman Islands" <?php if($row['country'] == "Cayman Islands") { echo "selected"; } ?>> Cayman Islands</option> <option value="Central African Republic" <?php if($row['country'] == "Central African Republic") { echo "selected"; } ?>> Central African Republic</option> <option value="Chad" <?php if($row['country'] == "Chad") { echo "selected"; } ?>> Chad </option> <option value="Channel Islands" <?php if($row['country'] == "Channel Islands") { echo "selected"; } ?>> Channel Islands</option> <option value="Chile" <?php if($row['country'] == "Chile") { echo "selected"; } ?>> Chile </option> <option value="China" <?php if($row['country'] == "China") { echo "selected"; } ?>> China </option> <option value="Christmas Island" <?php if($row['country'] == "Christmas Island") { echo "selected"; } ?>> Christmas Island</option> <option value="Cocos Island" <?php if($row['country'] == "Cocos Island") { echo "selected"; } ?>> Cocos Island</option> <option value="Colombia" <?php if($row['country'] == "Colombia") { echo "selected"; } ?>> Colombia</option> <option value="Comoros" <?php if($row['country'] == "Comoros") { echo "selected"; } ?>> Comoros</option> <option value="Congo" <?php if($row['country'] == "Congo") { echo "selected"; } ?>> Congo </option> <option value="Cook Islands" <?php if($row['country'] == "Cook Islands") { echo "selected"; } ?>> Cook Islands</option> <option value="Costa Rica" <?php if($row['country'] == "Costa Rica") { echo "selected"; } ?>> Costa Rica</option> <option value="Cote DIvoire" <?php if($row['country'] == "Cote DIvoire") { echo "selected"; } ?>> Cote DIvoire</option> <option value="Croatia" <?php if($row['country'] == "Croatia") { echo "selected"; } ?>> Croatia</option> <option value="Cuba" <?php if($row['country'] == "Cuba") { echo "selected"; } ?>> Cuba </option> <option value="Curaco" <?php if($row['country'] == "Curaco") { echo "selected"; } ?>> Curacao</option> <option value="Cyprus" <?php if($row['country'] == "Cyprus") { echo "selected"; } ?>> Cyprus </option> <option value="Czech Republic" <?php if($row['country'] == "Czech Republic") { echo "selected"; } ?>> Czech Republic</option> <option value="Denmark" <?php if($row['country'] == "Denmark") { echo "selected"; } ?>> Denmark</option> <option value="Djibouti" <?php if($row['country'] == "Djibouti") { echo "selected"; } ?>> Djibouti</option> <option value="Dominica" <?php if($row['country'] == "Dominica") { echo "selected"; } ?>> Dominica</option> <option value="Dominican Republic" <?php if($row['country'] == "Dominican Republic") { echo "selected"; } ?>> Dominican Republic</option> <option value="East Timor" <?php if($row['country'] == "East Timor") { echo "selected"; } ?>> East Timor</option> <option value="Ecuador" <?php if($row['country'] == "Ecuador") { echo "selected"; } ?>> Ecuador</option> <option value="Egypt" <?php if($row['country'] == "Egypt") { echo "selected"; } ?>> Egypt </option> <option value="El Salvador" <?php if($row['country'] == "El Salvador") { echo "selected"; } ?>> El Salvador</option> <option value="Equatorial Guinea" <?php if($row['country'] == "Equatorial Guinea") { echo "selected"; } ?>> Equatorial Guinea</option> <option value="Eritrea" <?php if($row['country'] == "Eritrea") { echo "selected"; } ?>> Eritrea</option> <option value="Estonia" <?php if($row['country'] == "Estonia") { echo "selected"; } ?>> Estonia</option> <option value="Ethiopia" <?php if($row['country'] == "Ethiopia") { echo "selected"; } ?>> Ethiopia</option> <option value="Falkland Islands" <?php if($row['country'] == "Falkland Islands") { echo "selected"; } ?>> Falkland Islands</option> <option value="Faroe Islands" <?php if($row['country'] == "Faroe Islands") { echo "selected"; } ?>> Faroe Islands</option> <option value="Fiji" <?php if($row['country'] == "Fiji") { echo "selected"; } ?>> Fiji </option> <option value="Finland" <?php if($row['country'] == "Finland") { echo "selected"; } ?>> Finland</option> <option value="France" <?php if($row['country'] == "France") { echo "selected"; } ?>> France </option> <option value="French Guiana" <?php if($row['country'] == "French Guiana") { echo "selected"; } ?>> French Guiana</option> <option value="French Polynesia" <?php if($row['country'] == "French Polynesia") { echo "selected"; } ?>> French Polynesia</option> <option value="French Southern Ter" <?php if($row['country'] == "French Southern Ter") { echo "selected"; } ?>> French Southern Ter</option> <option value="Gabon" <?php if($row['country'] == "Gabon") { echo "selected"; } ?>> Gabon </option> <option value="Gambia" <?php if($row['country'] == "Gambia") { echo "selected"; } ?>> Gambia </option> <option value="Georgia" <?php if($row['country'] == "Georgia") { echo "selected"; } ?>> Georgia</option> <option value="Germany" <?php if($row['country'] == "Germany") { echo "selected"; } ?>> Germany</option> <option value="Ghana" <?php if($row['country'] == "Ghana") { echo "selected"; } ?>> Ghana </option> <option value="Gibraltar" <?php if($row['country'] == "Gibraltar") { echo "selected"; } ?>> Gibraltar</option> <option value="Great Britain" <?php if($row['country'] == "Great Britain") { echo "selected"; } ?>> Great Britain</option> <option value="Greece" <?php if($row['country'] == "Greece") { echo "selected"; } ?>> Greece </option> <option value="Greenland" <?php if($row['country'] == "Greenland") { echo "selected"; } ?>> Greenland</option> <option value="Grenada" <?php if($row['country'] == "Grenada") { echo "selected"; } ?>> Grenada</option> <option value="Guadeloupe" <?php if($row['country'] == "Guadeloupe") { echo "selected"; } ?>> Guadeloupe</option> <option value="Guam" <?php if($row['country'] == "Guam") { echo "selected"; } ?>> Guam </option> <option value="Guatemala" <?php if($row['country'] == "Guatemala") { echo "selected"; } ?>> Guatemala</option> <option value="Guinea" <?php if($row['country'] == "Guinea") { echo "selected"; } ?>> Guinea </option> <option value="Guyana" <?php if($row['country'] == "Guyana") { echo "selected"; } ?>> Guyana </option> <option value="Haiti" <?php if($row['country'] == "Haiti") { echo "selected"; } ?>> Haiti </option> <option value="Hawaii" <?php if($row['country'] == "Hawaii") { echo "selected"; } ?>> Hawaii </option> <option value="Honduras" <?php if($row['country'] == "Honduras") { echo "selected"; } ?>> Honduras</option> <option value="Hong Kong" <?php if($row['country'] == "Hong Kong") { echo "selected"; } ?>> Hong Kong</option> <option value="Hungary" <?php if($row['country'] == "Hungary") { echo "selected"; } ?>> Hungary</option> <option value="Iceland" <?php if($row['country'] == "Iceland") { echo "selected"; } ?>> Iceland</option> <option value="Indonesia" <?php if($row['country'] == "Indonesia") { echo "selected"; } ?>> Indonesia</option> <option value="India" <?php if($row['country'] == "India") { echo "selected"; } ?>> India </option> <option value="Iran" <?php if($row['country'] == "Iran") { echo "selected"; } ?>> Iran </option> <option value="Iraq" <?php if($row['country'] == "Iraq") { echo "selected"; } ?>> Iraq </option> <option value="Ireland" <?php if($row['country'] == "Ireland") { echo "selected"; } ?>> Ireland</option> <option value="Isle of Man" <?php if($row['country'] == "Isle of Man") { echo "selected"; } ?>> Isle of Man</option> <option value="Israel" <?php if($row['country'] == "Israel") { echo "selected"; } ?>> Israel </option> <option value="Italy" <?php if($row['country'] == "Italy") { echo "selected"; } ?>> Italy </option> <option value="Jamaica" <?php if($row['country'] == "Jamaica") { echo "selected"; } ?>> Jamaica</option> <option value="Japan" <?php if($row['country'] == "Japan") { echo "selected"; } ?>> Japan </option> <option value="Jordan" <?php if($row['country'] == "Jordan") { echo "selected"; } ?>> Jordan </option> <option value="Kazakhstan" <?php if($row['country'] == "Kazakhstan") { echo "selected"; } ?>> Kazakhstan</option> <option value="Kenya" <?php if($row['country'] == "Kenya") { echo "selected"; } ?>> Kenya </option> <option value="Kiribati" <?php if($row['country'] == "Kiribati") { echo "selected"; } ?>> Kiribati</option> <option value="Korea North" <?php if($row['country'] == "Korea North") { echo "selected"; } ?>> Korea North</option> <option value="Korea South" <?php if($row['country'] == "Korea South") { echo "selected"; } ?>> Korea South</option> <option value="Kuwait" <?php if($row['country'] == "Kuwait") { echo "selected"; } ?>> Kuwait </option> <option value="Kyrgyzstan" <?php if($row['country'] == "Kyrgyzstan") { echo "selected"; } ?>> Kyrgyzstan</option> <option value="Laos" <?php if($row['country'] == "Laos") { echo "selected"; } ?>> Laos </option> <option value="Latvia" <?php if($row['country'] == "Latvia") { echo "selected"; } ?>> Latvia </option> <option value="Lebanon" <?php if($row['country'] == "Lebanon") { echo "selected"; } ?>> Lebanon</option> <option value="Lesotho" <?php if($row['country'] == "Lesotho") { echo "selected"; } ?>> Lesotho</option> <option value="Liberia" <?php if($row['country'] == "Liberia") { echo "selected"; } ?>> Liberia</option> <option value="Libya" <?php if($row['country'] == "Libya") { echo "selected"; } ?>> Libya </option> <option value="Liechtenstein" <?php if($row['country'] == "Liechtenstein") { echo "selected"; } ?>> Liechtenstein</option> <option value="Lithuania" <?php if($row['country'] == "Lithuania") { echo "selected"; } ?>> Lithuania</option> <option value="Luxembourg" <?php if($row['country'] == "Luxembourg") { echo "selected"; } ?>> Luxembourg</option> <option value="Macau" <?php if($row['country'] == "Macau") { echo "selected"; } ?>> Macau </option> <option value="Macedonia" <?php if($row['country'] == "Macedonia") { echo "selected"; } ?>> Macedonia</option> <option value="Madagascar" <?php if($row['country'] == "Madagascar") { echo "selected"; } ?>> Madagascar</option> <option value="Malaysia" <?php if($row['country'] == "Malaysia") { echo "selected"; } ?>> Malaysia</option> <option value="Malawi" <?php if($row['country'] == "Malawi") { echo "selected"; } ?>> Malawi </option> <option value="Maldives" <?php if($row['country'] == "Maldives") { echo "selected"; } ?>> Maldives</option> <option value="Mali" <?php if($row['country'] == "Mali") { echo "selected"; } ?>> Mali </option> <option value="Malta" <?php if($row['country'] == "Malta") { echo "selected"; } ?>> Malta </option> <option value="Marshall Islands" <?php if($row['country'] == "Marshall Islands") { echo "selected"; } ?>> Marshall Islands</option> <option value="Martinique" <?php if($row['country'] == "Martinique") { echo "selected"; } ?>> Martinique</option> <option value="Mauritania" <?php if($row['country'] == "Mauritania") { echo "selected"; } ?>> Mauritania</option> <option value="Mauritius" <?php if($row['country'] == "Mauritius") { echo "selected"; } ?>> Mauritius</option> <option value="Mayotte" <?php if($row['country'] == "Mayotte") { echo "selected"; } ?>> Mayotte</option> <option value="Mexico" <?php if($row['country'] == "Mexico") { echo "selected"; } ?>> Mexico </option> <option value="Midway Islands" <?php if($row['country'] == "Midway Islands") { echo "selected"; } ?>> Midway Islands</option> <option value="Moldova" <?php if($row['country'] == "Moldova") { echo "selected"; } ?>> Moldova</option> <option value="Monaco" <?php if($row['country'] == "Monaco") { echo "selected"; } ?>> Monaco </option> <option value="Mongolia" <?php if($row['country'] == "Mongolia") { echo "selected"; } ?>> Mongolia</option> <option value="Montserrat" <?php if($row['country'] == "Montserrat") { echo "selected"; } ?>> Montserrat</option> <option value="Morocco" <?php if($row['country'] == "Morocco") { echo "selected"; } ?>> Morocco</option> <option value="Mozambique" <?php if($row['country'] == "Mozambique") { echo "selected"; } ?>> Mozambique</option> <option value="Myanmar" <?php if($row['country'] == "Myanmar") { echo "selected"; } ?>> Myanmar</option> <option value="Nambia" <?php if($row['country'] == "Nambia") { echo "selected"; } ?>> Nambia </option> <option value="Nauru" <?php if($row['country'] == "Nauru") { echo "selected"; } ?>> Nauru </option> <option value="Nepal" <?php if($row['country'] == "Nepal") { echo "selected"; } ?>> Nepal </option> <option value="Netherland Antilles" <?php if($row['country'] == "Netherland Antilles") { echo "selected"; } ?>> Netherland Antilles</option> <option value="Netherlands" <?php if($row['country'] == "Netherlands") { echo "selected"; } ?>> Netherlands (Holland, Europe)</option> <option value="Nevis" <?php if($row['country'] == "Nevis") { echo "selected"; } ?>> Nevis </option> <option value="New Caledonia" <?php if($row['country'] == "New Caledonia") { echo "selected"; } ?>> New Caledonia</option> <option value="New Zealand" <?php if($row['country'] == "New Zealand") { echo "selected"; } ?>> New Zealand</option> <option value="Nicaragua" <?php if($row['country'] == "Nicaragua") { echo "selected"; } ?>> Nicaragua</option> <option value="Niger" <?php if($row['country'] == "Niger") { echo "selected"; } ?>> Niger </option> <option value="Nigeria" <?php if($row['country'] == "Nigeria") { echo "selected"; } ?>> Nigeria</option> <option value="Niue" <?php if($row['country'] == "Niue") { echo "selected"; } ?>> Niue </option> <option value="Norfolk Island" <?php if($row['country'] == "Norfolk Island") { echo "selected"; } ?>> Norfolk Island</option> <option value="Norway" <?php if($row['country'] == "Norway") { echo "selected"; } ?>> Norway </option> <option value="Oman" <?php if($row['country'] == "Oman") { echo "selected"; } ?>> Oman </option> <option value="Pakistan" <?php if($row['country'] == "Pakistan") { echo "selected"; } ?>> Pakistan</option> <option value="Palau Island" <?php if($row['country'] == "Palau Island") { echo "selected"; } ?>> Palau Island</option> <option value="Palestine" <?php if($row['country'] == "Palestine") { echo "selected"; } ?>> Palestine</option> <option value="Panama" <?php if($row['country'] == "Panama") { echo "selected"; } ?>> Panama </option> <option value="Papua New Guinea" <?php if($row['country'] == "Papua New Guinea") { echo "selected"; } ?>> Papua New Guinea</option> <option value="Paraguay" <?php if($row['country'] == "Paraguay") { echo "selected"; } ?>> Paraguay</option> <option value="Peru" <?php if($row['country'] == "Peru") { echo "selected"; } ?>> Peru </option> <option value="Phillipines" <?php if($row['country'] == "Phillipines") { echo "selected"; } ?>> Philippines</option> <option value="Pitcairn Island" <?php if($row['country'] == "Pitcairn Island") { echo "selected"; } ?>> Pitcairn Island</option> <option value="Poland" <?php if($row['country'] == "Poland") { echo "selected"; } ?>> Poland </option> <option value="Portugal" <?php if($row['country'] == "Portugal") { echo "selected"; } ?>> Portugal</option> <option value="Puerto Rico" <?php if($row['country'] == "Puerto Rico") { echo "selected"; } ?>> Puerto Rico</option> <option value="Qatar" <?php if($row['country'] == "Qatar") { echo "selected"; } ?>> Qatar </option> <option value="Republic of Montenegro" <?php if($row['country'] == "Republic of Montenegro") { echo "selected"; } ?>> Republic of Montenegro</option> <option value="Republic of Serbia" <?php if($row['country'] == "Republic of Serbia") { echo "selected"; } ?>> Republic of Serbia</option> <option value="Reunion" <?php if($row['country'] == "Reunion") { echo "selected"; } ?>> Reunion</option> <option value="Romania" <?php if($row['country'] == "Romania") { echo "selected"; } ?>> Romania</option> <option value="Russia" <?php if($row['country'] == "Russia") { echo "selected"; } ?>> Russia </option> <option value="Rwanda" <?php if($row['country'] == "Rwanda") { echo "selected"; } ?>> Rwanda </option> <option value="St Barthelemy" <?php if($row['country'] == "St Barthelemy") { echo "selected"; } ?>> St Barthelemy</option> <option value="St Eustatius" <?php if($row['country'] == "St Eustatius") { echo "selected"; } ?>> St Eustatius</option> <option value="St Helena" <?php if($row['country'] == "St Helena") { echo "selected"; } ?>> St Helena</option> <option value="St Kitts-Nevis" <?php if($row['country'] == "St Kitts-Nevis") { echo "selected"; } ?>> St Kitts-Nevis</option> <option value="St Lucia" <?php if($row['country'] == "St Lucia") { echo "selected"; } ?>> St Lucia</option> <option value="St Maarten" <?php if($row['country'] == "St Maarten") { echo "selected"; } ?>> St Maarten</option> <option value="St Pierre & Miquelon" <?php if($row['country'] == "St Pierre & Miquelon") { echo "selected"; } ?>> St Pierre & Miquelon</option> <option value="St Vincent & Grenadines" <?php if($row['country'] == "St Vincent & Grenadines") { echo "selected"; } ?>> St Vincent & Grenadines</option> <option value="Saipan" <?php if($row['country'] == "Saipan") { echo "selected"; } ?>> Saipan </option> <option value="Samoa" <?php if($row['country'] == "Samoa") { echo "selected"; } ?>> Samoa </option> <option value="Samoa American" <?php if($row['country'] == "Samoa American") { echo "selected"; } ?>> Samoa American</option> <option value="San Marino" <?php if($row['country'] == "San Marino") { echo "selected"; } ?>> San Marino</option> <option value="Sao Tome & Principe" <?php if($row['country'] == "Sao Tome & Principe") { echo "selected"; } ?>> Sao Tome & Principe</option> <option value="Saudi Arabia" <?php if($row['country'] == "Saudi Arabia") { echo "selected"; } ?>> Saudi Arabia</option> <option value="Senegal" <?php if($row['country'] == "Senegal") { echo "selected"; } ?>> Senegal</option> <option value="Seychelles" <?php if($row['country'] == "Seychelles") { echo "selected"; } ?>> Seychelles</option> <option value="Sierra Leone" <?php if($row['country'] == "Sierra Leone") { echo "selected"; } ?>> Sierra Leone</option> <option value="Singapore" <?php if($row['country'] == "Singapore") { echo "selected"; } ?>> Singapore</option> <option value="Slovakia" <?php if($row['country'] == "Slovakia") { echo "selected"; } ?>> Slovakia</option> <option value="Slovenia" <?php if($row['country'] == "Slovenia") { echo "selected"; } ?>> Slovenia</option> <option value="Solomon Islands" <?php if($row['country'] == "Solomon Islands") { echo "selected"; } ?>> Solomon Islands</option> <option value="Somalia" <?php if($row['country'] == "Somalia") { echo "selected"; } ?>> Somalia</option> <option value="South Africa" <?php if($row['country'] == "South Africa") { echo "selected"; } ?>> South Africa</option> <option value="Spain" <?php if($row['country'] == "Spain") { echo "selected"; } ?>> Spain </option> <option value="Sri Lanka" <?php if($row['country'] == "Sri Lanka") { echo "selected"; } ?>> Sri Lanka</option> <option value="Sudan" <?php if($row['country'] == "Sudan") { echo "selected"; } ?>> Sudan </option> <option value="Suriname" <?php if($row['country'] == "Suriname") { echo "selected"; } ?>> Suriname</option> <option value="Swaziland" <?php if($row['country'] == "Swaziland") { echo "selected"; } ?>> Swaziland</option> <option value="Sweden" <?php if($row['country'] == "Sweden") { echo "selected"; } ?>> Sweden </option> <option value="Switzerland" <?php if($row['country'] == "Switzerland") { echo "selected"; } ?>> Switzerland</option> <option value="Syria" <?php if($row['country'] == "Syria") { echo "selected"; } ?>> Syria </option> <option value="Tahiti" <?php if($row['country'] == "Tahiti") { echo "selected"; } ?>> Tahiti </option> <option value="Taiwan" <?php if($row['country'] == "Taiwan") { echo "selected"; } ?>> Taiwan </option> <option value="Tajikistan" <?php if($row['country'] == "Tajikistan") { echo "selected"; } ?>> Tajikistan</option> <option value="Tanzania" <?php if($row['country'] == "Tanzania") { echo "selected"; } ?>> Tanzania</option> <option value="Thailand" <?php if($row['country'] == "Thailand") { echo "selected"; } ?>> Thailand</option> <option value="Togo" <?php if($row['country'] == "Togo") { echo "selected"; } ?>> Togo </option> <option value="Tokelau" <?php if($row['country'] == "Tokelau") { echo "selected"; } ?>> Tokelau</option> <option value="Tonga" <?php if($row['country'] == "Tonga") { echo "selected"; } ?>> Tonga </option> <option value="Trinidad & Tobago" <?php if($row['country'] == "Trinidad & Tobago") { echo "selected"; } ?>> Trinidad & Tobago</option> <option value="Tunisia" <?php if($row['country'] == "Tunisia") { echo "selected"; } ?>> Tunisia</option> <option value="Turkey" <?php if($row['country'] == "Turkey") { echo "selected"; } ?>> Turkey </option> <option value="Turkmenistan" <?php if($row['country'] == "Turkmenistan") { echo "selected"; } ?>> Turkmenistan</option> <option value="Turks & Caicos Is" <?php if($row['country'] == "Turks & Caicos Is") { echo "selected"; } ?>> Turks & Caicos Is</option> <option value="Tuvalu" <?php if($row['country'] == "Tuvalu") { echo "selected"; } ?>> Tuvalu </option> <option value="Uganda" <?php if($row['country'] == "Uganda") { echo "selected"; } ?>> Uganda </option> <option value="United Kingdom" <?php if($row['country'] == "United Kingdom") { echo "selected"; } ?>> United Kingdom</option> <option value="Ukraine" <?php if($row['country'] == "Ukraine") { echo "selected"; } ?>> Ukraine</option> <option value="United Arab Erimates" <?php if($row['country'] == "United Arab Erimates") { echo "selected"; } ?>> United Arab Emirates</option> <option value="United States of America" <?php if($row['country'] == "United States of America") { echo "selected"; } ?>> United States of America</option> <option value="Uraguay" <?php if($row['country'] == "Uraguay") { echo "selected"; } ?>> Uruguay</option> <option value="Uzbekistan" <?php if($row['country'] == "Uzbekistan") { echo "selected"; } ?>> Uzbekistan</option> <option value="Vanuatu" <?php if($row['country'] == "Vanuatu") { echo "selected"; } ?>> Vanuatu</option> <option value="Vatican City State" <?php if($row['country'] == "Vatican City State") { echo "selected"; } ?>> Vatican City State</option> <option value="Venezuela" <?php if($row['country'] == "Venezuela") { echo "selected"; } ?>> Venezuela</option> <option value="Vietnam" <?php if($row['country'] == "Vietnam") { echo "selected"; } ?>> Vietnam</option> <option value="Virgin Islands (Brit)" <?php if($row['country'] == "Virgin Islands (Brit)") { echo "selected"; } ?>> Virgin Islands (Brit)</option> <option value="Virgin Islands (USA)" <?php if($row['country'] == "Virgin Islands (USA)") { echo "selected"; } ?>> Virgin Islands (USA)</option> <option value="Wake Island" <?php if($row['country'] == "Wake Island") { echo "selected"; } ?>> Wake Island</option> <option value="Wallis & Futana Is" <?php if($row['country'] == "Wallis & Futana Is") { echo "selected"; } ?>> Wallis & Futana Is</option> <option value="Yemen" <?php if($row['country'] == "Yemen") { echo "selected"; } ?>> Yemen </option> <option value="Zaire" <?php if($row['country'] == "Zaire") { echo "selected"; } ?>> Zaire </option> <option value="Zambia" <?php if($row['country'] == "Zambia") { echo "selected"; } ?>> Zambia </option> <option value="Zimbabwe" <?php if($row['country'] == "Zimbabwe") { echo "selected"; } ?>> Zimbabwe</option> </select> </div> </div> <div class="col-md-4 taxType" id="taxType" style="<?php if($row['country'] == "India") { echo "display:none"; } ?>"> <div class="form-group"> <label>Tax Number</label> <input type="text" class="form-control" name="taxno[]" placeholder="Enter Tax Number" value="<?php echo $row['gstin'] ?>"> </div> </div> <div class="col-md-4 taxIndia" id="taxIndia" style="<?php if($row['country'] != "India") { echo "display:none"; } ?>"> <div class="form-group"> <label for="exampleInputPassword1" id="countryTaxtype">GSTIN</label> <input type="text" class="form-control gstInClass" name="gstin[]" placeholder="Enter GSTIN" value="<?php echo $row['gstin'] ?>""> </div> </div> <?php if($i != 0) { ?> <div class=" col-md-4"> <div class='form-group' style='margin-top:30px'> <button type='button' onclick='deletethis(this)' class='btn btn-danger waves-effect waves-light'>Delete</button> </div> </div> <?php } ?> </div> </div> <?php $i++; } } } ?> <div id="moreAddress"> </div> <div class="card-box"> <center> <button type="button" id="addAddress" class="btn btn-purple waves-effect waves-light">Add More Address</button> <button type="button" id="btnSubmit" class="btn btn-purple waves-effect waves-light">Update</button> </center> </div> </form> </div> </div> </div> <!-- container --> </div> <!-- content --> <?php include 'copyrignt.php' ?> </div> <!-- ============================================================== --> <!-- End Right content here --> <!-- ============================================================== --> </div> <!-- END wrapper --> <!-- Chart Js --> <script src='https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js'></script> <script src='https://cdnjs.cloudflare.com/ajax/libs/c3/0.4.11/c3.min.js'></script> <script src='https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.1.3/Chart.js'></script> <!-- jQuery --> <script src="assets/js/jquery.min.js"></script> <script src="assets/js/popper.min.js"></script><!-- Popper for Bootstrap --> <script src="assets/js/bootstrap.min.js"></script> <script src="assets/js/metisMenu.min.js"></script> <script src="assets/js/waves.js"></script> <script src="assets/js/jquery.slimscroll.js"></script> <!-- Dashboard init --> <script src="assets/pages/jquery.dashboard.js"></script> <!-- App js --> <script src="assets/js/jquery.core.js"></script> <script src="assets/js/jquery.app.js"></script> <!-- Chart Js --> <!-- <!-- <script src="assets/pie charts/script.js"></script> --> --> <!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.17.0/jquery.validate.js"></script> --> <script> $(document).on('change', '.country', function() { var country = $('option:selected', this).text(); if (country.trim() != "India") { $(this).closest('.row').find('.taxType').css({ "display": "block" }); $(this).closest('.row').find('.taxIndia').css({ "display": "none" }); } else { $(this).closest('.row').find('.taxType').css({ "display": "none" }); $(this).closest('.row').find('.taxIndia').css({ "display": "block" }); } }); $("#btnSubmit").click(function(){ var check = []; var i = 0; var reg = /^([0-9]{2}[a-zA-Z]{4}([a-zA-Z]{1}|[0-9]{1})[0-9]{4}[a-zA-Z]{1}([a-zA-Z]|[0-9]){3}){0,15}$/; // var reg= /^([0-9]){2}([A-Za-z]){5}([0-9]){4}([A-Za-z]){1}([0-9]{1})([A-Za-z]){2}?$/; $('.gstInClass').each(function() { if (this.value != null || this.value != ''){ var data = this.value; if (data.match(reg)) { check[i] = true; } else { alert("Please Enter valid GST Number"); this.focus(); check[i] = false; } } i++; }); if(check.includes(false)){ } else{ $("#myform").submit(); } }) $("#addAddress").click(function() { $("#moreAddress").append('<div class=\'card-box\'>' + '<div class=\'row\'>' + '<div class=\'col-lg-4\'>' + '<div class=\'form-group\'>' + '<label for=\'exampleInputEmail1\'>Address</label>' + '<input type=\'text\' class=\'form-control\' name=\'address[]\'' + 'placeholder=\'Enter address\' required>' + '</div>' + '</div>' + '<div class=\'col-lg-4\'>' + '<div class=\'form-group\'>' + '<label for=\'exampleInputPassword1\'>City</label>' + '<input type=\'text\' class=\'form-control\' name=\'city[]\' placeholder=\'Enter city\'' + 'required>' + '</div>' + '</div>' + '<div class=\'col-lg-4\'>' + '<div class=\'form-group\'>' + '<label for=\'exampleInputPassword1\'>State</label>' + '<input type=\'text\' class=\'form-control\' name=\'state[]\' placeholder=\'Enter state\'' + 'required>' + '</div>' + '</div>' + '' + '</div>' + '<div class=\'row\'>' + '' + '<div class=\'col-md-4\'>' + '<div class=\'form-group\'>' + '<label for=\'exampleInputPassword1\'>Pin</label>' + '<input type=\'text\' class=\'form-control\' name=\'pin[]\' placeholder=\'Enter pin\'' + 'required>' + '</div>' + '</div>' + '<div class=\'col-lg-4\'>' + '<div class=\'form-group\'>' + '<label for=\'exampleInputPassword1\'>Email</label>' + '<input type=\'email\' class=\'form-control\' name=\'email[]\' placeholder=\'Enter email\'' + 'required>' + '</div>' + '</div>' + '<div class=\'col-md-4\'>' + '<div class=\'form-group\'>' + '<label for=\'exampleInputPassword1\'>Phone</label>' + '<input type=\'text\' class=\'form-control\' name=\'phone[]\' placeholder=\'Enter phone\'' + 'required>' + '</div>' + '</div>' + '</div>' + '<div class=\'row\'>' + '' + '<div class=\'col-lg-4\'>' + '<div class=\'form-group\'>' + '<label for=\'exampleInputPassword1\'>Country</label>' + '<select class=\'form-control country\' name=\'country[]\' required>' + '<option value=\'\'>--Select--</option>' + '<option value=\'Afganistan\'>Afghanistan</option>' + '<option value=\'Albania\'>Albania</option>' + '<option value=\'Algeria\'>Algeria</option>' + '<option value=\'American Samoa\'>American Samoa</option>' + '<option value=\'Andorra\'>Andorra</option>' + '<option value=\'Angola\'>Angola</option>' + '<option value=\'Anguilla\'>Anguilla</option>' + '<option value=\'Antigua & Barbuda\'>Antigua & Barbuda</option>' + '<option value=\'Argentina\'>Argentina</option>' + '<option value=\'Armenia\'>Armenia</option>' + '<option value=\'Aruba\'>Aruba</option>' + '<option value=\'Australia\'>Australia</option>' + '<option value=\'Austria\'>Austria</option>' + '<option value=\'Azerbaijan\'>Azerbaijan</option>' + '<option value=\'Bahamas\'>Bahamas</option>' + '<option value=\'Bahrain\'>Bahrain</option>' + '<option value=\'Bangladesh\'>Bangladesh</option>' + '<option value=\'Barbados\'>Barbados</option>' + '<option value=\'Belarus\'>Belarus</option>' + '<option value=\'Belgium\'>Belgium</option>' + '<option value=\'Belize\'>Belize</option>' + '<option value=\'Benin\'>Benin</option>' + '<option value=\'Bermuda\'>Bermuda</option>' + '<option value=\'Bhutan\'>Bhutan</option>' + '<option value=\'Bolivia\'>Bolivia</option>' + '<option value=\'Bonaire\'>Bonaire</option>' + '<option value=\'Bosnia & Herzegovina\'>Bosnia & Herzegovina</option>' + '<option value=\'Botswana\'>Botswana</option>' + '<option value=\'Brazil\'>Brazil</option>' + '<option value=\'British Indian Ocean Ter\'>British Indian Ocean Ter' + '</option>' + '<option value=\'Brunei\'>Brunei</option>' + '<option value=\'Bulgaria\'>Bulgaria</option>' + '<option value=\'Burkina Faso\'>Burkina Faso</option>' + '<option value=\'Burundi\'>Burundi</option>' + '<option value=\'Cambodia\'>Cambodia</option>' + '<option value=\'Cameroon\'>Cameroon</option>' + '<option value=\'Canada\'>Canada</option>' + '<option value=\'Canary Islands\'>Canary Islands</option>' + '<option value=\'Cape Verde\'>Cape Verde</option>' + '<option value=\'Cayman Islands\'>Cayman Islands</option>' + '<option value=\'Central African Republic\'>Central African Republic' + '</option>' + '<option value=\'Chad\'>Chad</option>' + '<option value=\'Channel Islands\'>Channel Islands</option>' + '<option value=\'Chile\'>Chile</option>' + '<option value=\'China\'>China</option>' + '<option value=\'Christmas Island\'>Christmas Island</option>' + '<option value=\'Cocos Island\'>Cocos Island</option>' + '<option value=\'Colombia\'>Colombia</option>' + '<option value=\'Comoros\'>Comoros</option>' + '<option value=\'Congo\'>Congo</option>' + '<option value=\'Cook Islands\'>Cook Islands</option>' + '<option value=\'Costa Rica\'>Costa Rica</option>' + '<option value=\'Cote DIvoire\'>Cote DIvoire</option>' + '<option value=\'Croatia\'>Croatia</option>' + '<option value=\'Cuba\'>Cuba</option>' + '<option value=\'Curaco\'>Curacao</option>' + '<option value=\'Cyprus\'>Cyprus</option>' + '<option value=\'Czech Republic\'>Czech Republic</option>' + '<option value=\'Denmark\'>Denmark</option>' + '<option value=\'Djibouti\'>Djibouti</option>' + '<option value=\'Dominica\'>Dominica</option>' + '<option value=\'Dominican Republic\'>Dominican Republic</option>' + '<option value=\'East Timor\'>East Timor</option>' + '<option value=\'Ecuador\'>Ecuador</option>' + '<option value=\'Egypt\'>Egypt</option>' + '<option value=\'El Salvador\'>El Salvador</option>' + '<option value=\'Equatorial Guinea\'>Equatorial Guinea</option>' + '<option value=\'Eritrea\'>Eritrea</option>' + '<option value=\'Estonia\'>Estonia</option>' + '<option value=\'Ethiopia\'>Ethiopia</option>' + '<option value=\'Falkland Islands\'>Falkland Islands</option>' + '<option value=\'Faroe Islands\'>Faroe Islands</option>' + '<option value=\'Fiji\'>Fiji</option>' + '<option value=\'Finland\'>Finland</option>' + '<option value=\'France\'>France</option>' + '<option value=\'French Guiana\'>French Guiana</option>' + '<option value=\'French Polynesia\'>French Polynesia</option>' + '<option value=\'French Southern Ter\'>French Southern Ter</option>' + '<option value=\'Gabon\'>Gabon</option>' + '<option value=\'Gambia\'>Gambia</option>' + '<option value=\'Georgia\'>Georgia</option>' + '<option value=\'Germany\'>Germany</option>' + '<option value=\'Ghana\'>Ghana</option>' + '<option value=\'Gibraltar\'>Gibraltar</option>' + '<option value=\'Great Britain\'>Great Britain</option>' + '<option value=\'Greece\'>Greece</option>' + '<option value=\'Greenland\'>Greenland</option>' + '<option value=\'Grenada\'>Grenada</option>' + '<option value=\'Guadeloupe\'>Guadeloupe</option>' + '<option value=\'Guam\'>Guam</option>' + '<option value=\'Guatemala\'>Guatemala</option>' + '<option value=\'Guinea\'>Guinea</option>' + '<option value=\'Guyana\'>Guyana</option>' + '<option value=\'Haiti\'>Haiti</option>' + '<option value=\'Hawaii\'>Hawaii</option>' + '<option value=\'Honduras\'>Honduras</option>' + '<option value=\'Hong Kong\'>Hong Kong</option>' + '<option value=\'Hungary\'>Hungary</option>' + '<option value=\'Iceland\'>Iceland</option>' + '<option value=\'Indonesia\'>Indonesia</option>' + '<option value=\'India\'>India</option>' + '<option value=\'Iran\'>Iran</option>' + '<option value=\'Iraq\'>Iraq</option>' + '<option value=\'Ireland\'>Ireland</option>' + '<option value=\'Isle of Man\'>Isle of Man</option>' + '<option value=\'Israel\'>Israel</option>' + '<option value=\'Italy\'>Italy</option>' + '<option value=\'Jamaica\'>Jamaica</option>' + '<option value=\'Japan\'>Japan</option>' + '<option value=\'Jordan\'>Jordan</option>' + '<option value=\'Kazakhstan\'>Kazakhstan</option>' + '<option value=\'Kenya\'>Kenya</option>' + '<option value=\'Kiribati\'>Kiribati</option>' + '<option value=\'Korea North\'>Korea North</option>' + '<option value=\'Korea Sout\'>Korea South</option>' + '<option value=\'Kuwait\'>Kuwait</option>' + '<option value=\'Kyrgyzstan\'>Kyrgyzstan</option>' + '<option value=\'Laos\'>Laos</option>' + '<option value=\'Latvia\'>Latvia</option>' + '<option value=\'Lebanon\'>Lebanon</option>' + '<option value=\'Lesotho\'>Lesotho</option>' + '<option value=\'Liberia\'>Liberia</option>' + '<option value=\'Libya\'>Libya</option>' + '<option value=\'Liechtenstein\'>Liechtenstein</option>' + '<option value=\'Lithuania\'>Lithuania</option>' + '<option value=\'Luxembourg\'>Luxembourg</option>' + '<option value=\'Macau\'>Macau</option>' + '<option value=\'Macedonia\'>Macedonia</option>' + '<option value=\'Madagascar\'>Madagascar</option>' + '<option value=\'Malaysia\'>Malaysia</option>' + '<option value=\'Malawi\'>Malawi</option>' + '<option value=\'Maldives\'>Maldives</option>' + '<option value=\'Mali\'>Mali</option>' + '<option value=\'Malta\'>Malta</option>' + '<option value=\'Marshall Islands\'>Marshall Islands</option>' + '<option value=\'Martinique\'>Martinique</option>' + '<option value=\'Mauritania\'>Mauritania</option>' + '<option value=\'Mauritius\'>Mauritius</option>' + '<option value=\'Mayotte\'>Mayotte</option>' + '<option value=\'Mexico\'>Mexico</option>' + '<option value=\'Midway Islands\'>Midway Islands</option>' + '<option value=\'Moldova\'>Moldova</option>' + '<option value=\'Monaco\'>Monaco</option>' + '<option value=\'Mongolia\'>Mongolia</option>' + '<option value=\'Montserrat\'>Montserrat</option>' + '<option value=\'Morocco\'>Morocco</option>' + '<option value=\'Mozambique\'>Mozambique</option>' + '<option value=\'Myanmar\'>Myanmar</option>' + '<option value=\'Nambia\'>Nambia</option>' + '<option value=\'Nauru\'>Nauru</option>' + '<option value=\'Nepal\'>Nepal</option>' + '<option value=\'Netherland Antilles\'>Netherland Antilles</option>' + '<option value=\'Netherlands\'>Netherlands (Holland, Europe)</option>' + '<option value=\'Nevis\'>Nevis</option>' + '<option value=\'New Caledonia\'>New Caledonia</option>' + '<option value=\'New Zealand\'>New Zealand</option>' + '<option value=\'Nicaragua\'>Nicaragua</option>' + '<option value=\'Niger\'>Niger</option>' + '<option value=\'Nigeria\'>Nigeria</option>' + '<option value=\'Niue\'>Niue</option>' + '<option value=\'Norfolk Island\'>Norfolk Island</option>' + '<option value=\'Norway\'>Norway</option>' + '<option value=\'Oman\'>Oman</option>' + '<option value=\'Pakistan\'>Pakistan</option>' + '<option value=\'Palau Island\'>Palau Island</option>' + '<option value=\'Palestine\'>Palestine</option>' + '<option value=\'Panama\'>Panama</option>' + '<option value=\'Papua New Guinea\'>Papua New Guinea</option>' + '<option value=\'Paraguay\'>Paraguay</option>' + '<option value=\'Peru\'>Peru</option>' + '<option value=\'Phillipines\'>Philippines</option>' + '<option value=\'Pitcairn Island\'>Pitcairn Island</option>' + '<option value=\'Poland\'>Poland</option>' + '<option value=\'Portugal\'>Portugal</option>' + '<option value=\'Puerto Rico\'>Puerto Rico</option>' + '<option value=\'Qatar\'>Qatar</option>' + '<option value=\'Republic of Montenegro\'>Republic of Montenegro</option>' + '<option value=\'Republic of Serbia\'>Republic of Serbia</option>' + '<option value=\'Reunion\'>Reunion</option>' + '<option value=\'Romania\'>Romania</option>' + '<option value=\'Russia\'>Russia</option>' + '<option value=\'Rwanda\'>Rwanda</option>' + '<option value=\'St Barthelemy\'>St Barthelemy</option>' + '<option value=\'St Eustatius\'>St Eustatius</option>' + '<option value=\'St Helena\'>St Helena</option>' + '<option value=\'St Kitts-Nevis\'>St Kitts-Nevis</option>' + '<option value=\'St Lucia\'>St Lucia</option>' + '<option value=\'St Maarten\'>St Maarten</option>' + '<option value=\'St Pierre & Miquelon\'>St Pierre & Miquelon</option>' + '<option value=\'St Vincent & Grenadines\'>St Vincent & Grenadines</option>' + '<option value=\'Saipan\'>Saipan</option>' + '<option value=\'Samoa\'>Samoa</option>' + '<option value=\'Samoa American\'>Samoa American</option>' + '<option value=\'San Marino\'>San Marino</option>' + '<option value=\'Sao Tome & Principe\'>Sao Tome & Principe</option>' + '<option value=\'Saudi Arabia\'>Saudi Arabia</option>' + '<option value=\'Senegal\'>Senegal</option>' + '<option value=\'Seychelles\'>Seychelles</option>' + '<option value=\'Sierra Leone\'>Sierra Leone</option>' + '<option value=\'Singapore\'>Singapore</option>' + '<option value=\'Slovakia\'>Slovakia</option>' + '<option value=\'Slovenia\'>Slovenia</option>' + '<option value=\'Solomon Islands\'>Solomon Islands</option>' + '<option value=\'Somalia\'>Somalia</option>' + '<option value=\'South Africa\'>South Africa</option>' + '<option value=\'Spain\'>Spain</option>' + '<option value=\'Sri Lanka\'>Sri Lanka</option>' + '<option value=\'Sudan\'>Sudan</option>' + '<option value=\'Suriname\'>Suriname</option>' + '<option value=\'Swaziland\'>Swaziland</option>' + '<option value=\'Sweden\'>Sweden</option>' + '<option value=\'Switzerland\'>Switzerland</option>' + '<option value=\'Syria\'>Syria</option>' + '<option value=\'Tahiti\'>Tahiti</option>' + '<option value=\'Taiwan\'>Taiwan</option>' + '<option value=\'Tajikistan\'>Tajikistan</option>' + '<option value=\'Tanzania\'>Tanzania</option>' + '<option value=\'Thailand\'>Thailand</option>' + '<option value=\'Togo\'>Togo</option>' + '<option value=\'Tokelau\'>Tokelau</option>' + '<option value=\'Tonga\'>Tonga</option>' + '<option value=\'Trinidad & Tobago\'>Trinidad & Tobago</option>' + '<option value=\'Tunisia\'>Tunisia</option>' + '<option value=\'Turkey\'>Turkey</option>' + '<option value=\'Turkmenistan\'>Turkmenistan</option>' + '<option value=\'Turks & Caicos Is\'>Turks & Caicos Is</option>' + '<option value=\'Tuvalu\'>Tuvalu</option>' + '<option value=\'Uganda\'>Uganda</option>' + '<option value=\'United Kingdom\'>United Kingdom</option>' + '<option value=\'Ukraine\'>Ukraine</option>' + '<option value=\'United Arab Erimates\'>United Arab Emirates</option>' + '<option value=\'United States of America\'>United States of America' + '</option>' + '<option value=\'Uraguay\'>Uruguay</option>' + '<option value=\'Uzbekistan\'>Uzbekistan</option>' + '<option value=\'Vanuatu\'>Vanuatu</option>' + '<option value=\'Vatican City State\'>Vatican City State</option>' + '<option value=\'Venezuela\'>Venezuela</option>' + '<option value=\'Vietnam\'>Vietnam</option>' + '<option value=\'Virgin Islands (Brit)\'>Virgin Islands (Brit)</option>' + '<option value=\'Virgin Islands (USA)\'>Virgin Islands (USA)</option>' + '<option value=\'Wake Island\'>Wake Island</option>' + '<option value=\'Wallis & Futana Is\'>Wallis & Futana Is</option>' + '<option value=\'Yemen\'>Yemen</option>' + '<option value=\'Zaire\'>Zaire</option>' + '<option value=\'Zambia\'>Zambia</option>' + '<option value=\'Zimbabwe\'>Zimbabwe</option>' + '</select>' + '</div>' + '</div>' + '<div class=\'col-md-4 taxType\' id=\'taxType\' style=\'display:none\'>' + '<div class=\'form-group\'>' + '<label>Tax Number</label>' + '<input type=\'text\' class=\'form-control\' name=\'taxno[]\'' + 'placeholder=\'Enter Tax Number\' required>' + '</div>' + '</div>' + '<div class=\'col-md-4 taxIndia\' id=\'taxIndia\'>' + '<div class=\'form-group\'>' + '<label for=\'exampleInputPassword1\' id=\'countryTaxtype\'>GSTIN</label>' + '<input type=\'text\' class=\'form-control gstInClass\' name=\'gstin[]\' id=\'gstin\'' + 'placeholder=\'Enter GSTIN\'>' + '</div>' + '</div>' + '<div class=\'col-md-4\'>' + '<div class=\'form-group\' style=\'margin-top:30px\'><button type=\'button\' onclick=\'deletethis(this)\' class=\'btn btn-danger waves-effect waves-light\'>Delete</button></div></div>' + '</div>' + '</div>'); }); function deletethis(button) { $(button).parent().parent().parent().parent().remove(); } </script> </body> </html>