Try this
$(".answer").hide();
$(".coupon_question").click(function() {
if($(this).is(":checked")) {
$(".answer").show(300);
} else {
$(".answer").hide(200);
}
});
More Related Contents:
- rocking effect in jquery? [closed]
- How to fire AJAX request Periodically?
- Show div on scrollDown after 800px
- Stopping fixed position scrolling at a certain point?
- How to check if click event is already bound – JQuery
- Toggle input disabled attribute using jQuery
- what’s faster? CSS3 transitions or jQuery animations?
- jQuery find element by data attribute value
- Populating One Select Box Based on the Selection in Another Select Box – JQuery?
- jquery live hover
- Reset select2 value and show placeholder
- Use jQuery to Select Visited Links
- How to hide/show more text within a certain length (like youtube)
- Use success() or complete() in AJAX call
- Validate Format of an Email Address using Jquery.validate.js [closed]
- Check if YouTube video is playing and run script
- How to return an object from a Spring MVC controller in response to AJAX request?
- $(”) vs $(”) in jQuery
- Is it safe to use $.support.cors = true; in jQuery?
- What is the best practice for parsing remote content with jQuery?
- jquery fill dropdown with json data
- Find all elements on a page whose element ID contains a certain text using jQuery
- jQuery validator plugin + ajax submitting not working
- jQuery $(this) selector function and limitations
- Remove CSS “top” and “left” attributes with jQuery
- jQuery: using a variable as a selector [duplicate]
- jquery validation not waiting for remote validation to return true, considers form valid
- Selecting a jQuery Tab using a parameter in the URL
- Using jQuery’s $.ajax within an angularJS controller
- Load JQuery into a Chrome extension?