Value is not changing in the javascript variable on the onClick event
- by Chetan sharma
I am trying to implement a dynamic search jquery and php, but I am not able to change the value of a javascript variable on my onclick event.
<script type="text/javascript">
var main_category = '<?php echo $main_category?>';
var main_url = '<?php echo $url?>get/' + encodeURIComponent(main_category) + '/';
var container_id =…