javascript - Trying to get $(document).on('Click') to work for a p tag -
i trying document.on function work when user clicks on p tag has class called card. far function non responsive. should change function respond when click on p tag has class called card. here html , jquery code. <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="description" content="contacts"> <title>contacts</title> <link rel="stylesheet" type="text/css" href="style.css"> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('button').click(function(){ var first = $('input.first').val(); var last = $('input.last').val(); var desc = $('textarea').val(); $('div.right').append("<p class='ca