javascript

Jquery code : to match element’s value from its id and show text based on that to other element




<script>
jQuery(document).ready(function(){
var xle;
 xle= jQuery("#coupon_code").val();
if(xle>"FREENEXT")
{
jQuery("#msg").html('Express Delivery');
jQuery("#msg").css('color','#000');
}

});

</script>

Leave a Reply

Your email address will not be published. Required fields are marked *

20 − 5 =