You should use $(this)
instead of $("#app")
if($(this).is(':checked')){
alert('hi')
}
More Related Contents:
- Date Format UTC in javascript [duplicate]
- Css set size of elements in array dynamically [closed]
- how to store new elements added in webpage by user? [closed]
- How can I make my header smaller if i will scroll down the webpage [closed]
- Get the size of the screen, current web page and browser window
- jQuery/JavaScript to replace broken images
- Height equal to dynamic width (CSS fluid layout) [duplicate]
- Get file size, image width and height before upload
- Set cursor position on contentEditable
- How to disable all div content
- Capture key press (or keydown) event on DIV element
- How to scroll to top of page with JavaScript/jQuery?
- Trigger Change event when the Input value changed programmatically?
- ReferenceError: $ is not defined
- Using execCommand (Javascript) to copy hidden text to clipboard
- How to get the onclick calling object?
- How to use jQuery to select a dropdown option?
- JavaScript Scale Text to Fit in Fixed Div
- How to detect element being added/removed from dom element?
- CSS3-Animate elements if visible in viewport (Page Scroll)
- How to create a responsive image that also scales up in Bootstrap 3
- How to focus on a form input text field on page load using jQuery?
- jQuery – Redirect with post data
- Click on option event
- How to replace html element with ajax response?
- Trigger standard HTML5 validation (form) without using submit button?
- How do I make a move up and down when I’m scrolling the page?
- Convert dropdown to selection boxes with color and trigger drop down action
- Trigger for span text/html on changed
- How can I calculate the difference between two times that are in 24 hour format?