looking for some solutions? You are welcome.

SOLVED: Jquery : get value of variable of variable , check this :

Madhavi Jha:

I want to get value of variable "mjt_plan1", by giving a dynamic variable 'plan'

 <script type="text/javascript">
        jQuery(document).ready(function(){
            var plan = 'plan1';
            var mjt_plan1 = '10000';
            alert('mjt_'+plan);
        });
    </script>



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
Share:

No comments:

Recent