PHP usage in JavaScript
<script type="text/javascript">
<?php $count=0; ?>
for(var i=0;i<10;i++)
{
<?php echo "Value of Counter".$count;?>
<?php count++; ?>
}
</script>
Added to PHP by Srikanth Rayabhagi
Make Div Clickable
$("<<**SelectionInsertionPlaceholder**>>").click(function(){
window.location=$(this).find("a").attr("href");
return false;
});
jQuery hover class
$('**SelectionPlaceholder**').hover(
function(){ $(this).addClass('hover') },
function(){ $(this).removeClass('hover') }
)
jQuery $(document).ready() shorthand
$(function(){
*SelectionPlaceholder*
});
Added to JS by Bartek Stańkowski
jQuery ajaxSetup
$.ajaxSetup({
global: false,
beforeSend:function(){
},
complete: function(){
},
error:function() {
},
type: "POST"
});
Added to JS by Bartek Stańkowski