I want to call this Script from a commandButton managed by a method in a bean, where do I put the name so it can be referenced in a method? and what to put in that method?
<script>
$(document).ready(function () {
$("#pezz").animate({
left: '+=150px',
height: '+=20px',
width: '+=20px'
});
});
</script>
it has to be in a method in the backing bean, because the Jquery will be executed if some conditions are meet, else other jQuery will be executed, and attributes of the bean will be changed...also other methods inside that method will be executed.