$(document).click(function(event){ $target = $(event.target); if(!$target.closest('.div-content').length){ alert('outside'); }else{ alert('inside'); } });
Month: July 2020
Change date format in WordPress comments
add_filter( 'get_comment_date', 'aviweb_comment_date' ); function aviweb_comment_date( $date ) { $date = date("d/m/Y"); return $date; }
How can I fix RevSlider Fatal error in dashboard after upgrading to PHP 7
Please update below code in plugin file. It’s temporary solution only, you need to contact plugin support team.
path: revslider/includes/framework/base-admin.class.php private static $arrMetaBoxes = ''; to private static $arrMetaBoxes = array();
Get radio button value on change
var radio_data = $('input[name="gender"]').change(function () { var value = radio_data.filter(':checked').val(); alert(value); });