<?php $id = get_the_ID(); echo '<div id="post-'.$id.'" class="box" >'; ?>
var clickedElement; $('.box').click(function() { clickedElement = $(this).attr("id"); }); $('#' + clickedElement).append('<div id="zoom"></div>');
$('#post-23').append('<div id="zoom"></div>');
var clickedElement; $('.box').click(function() { clickedElement = $(this).attr("id"); $('#' + clickedElement).append('<div id="zoom">hello this is newly appended div.</div>'); });
$('.box').click(function() { $(this).append('<div id="zoom"></div>'); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)