Skip to content

Instantly share code, notes, and snippets.

/form.js Secret

Created September 11, 2015 01:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/82c00a2fae6780268329 to your computer and use it in GitHub Desktop.
Save anonymous/82c00a2fae6780268329 to your computer and use it in GitHub Desktop.
$(function() {
$(".pricing_information_form_location").hide()
$(".pricing_information_form_aunction_date").hide()
$(".pricing_information_form_price_start").hide()
$(".pricing_information_form_price_end").hide()
$(".pricing_information_form_price").hide()
$(".pricing_information_form_sell_date").hide()
$(".pricing_information_form_pricing_style").change(function(){
if($(".pricing_information_form_pricing_style").val('Auction')){
$(".pricing_information_form_aunction_date").show()
$(".pricing_information_form_location").show()
$(".pricing_information_form_price_start").show()
$(".pricing_information_form_price_end").show()
}
else{
$(".pricing_information_form_aunction_date").hide()
$(".pricing_information_form_location").hide()
$(".pricing_information_form_price_start").hide()
$(".pricing_information_form_price_end").hide()
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment