I want to remove validation for field if specific country is selected for example if User selects India from country then I need to skip validation fro city in other words if India is selected no need for user to enter City
So far I tried getting this using if..else
conditions but I cannot able to achieve this
this is my code
<div class="field">
<?php $country=$this->getCountryHtmlSelect('shipping')?>
<?php echo $country; ?>
<?php if($country!=India)?>
<label for="shipping:city" class="required"><em>*</em><?php echo $this->__('City') ?></label>
<div class="input-box">
<input type="text" title="<?php echo $this->__('City') ?>" name="shipping[city]" value="<?php echo $this->escapeHtml($this->getAddress()->getCity()) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('city') ?>" id="shipping:city" onchange="shipping.setSameAsBilling(false);" />
</div>
<?php else: ?>
<label for="shipping:city" <?php echo $this->__('City') ?></label>
<div class="input-box">
<input type="text" title="<?php echo $this->__('City') ?>" name="shipping[city]" value="<?php echo $this->escapeHtml($this->getAddress()->getCity()) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('city') ?>" id="shipping:city" onchange="shipping.setSameAsBilling(false);" />
</div>
<?php endif; ?>
</div>