I have problem with change images size in posts (after click on the buttons grid/list).
these are the buttons that should (after click) change $value to true or false (that scale images):
<div class="products_look">
<input type="button" class="view_list" onclick="" value="List" />
<input type="button" class="view_grid" onclick="" value="Grid" />
</div>
and this is the php functions that generated grid or list view in the posts:
<?php
if($value == true) {
echo image_products_grid();
}
else {
echo image_products_list();
}
?>
What I need to insert in onClick tags that after clicking on the button returned php $value (true or false)?