I'm using an element value with the default loaded page: like this:
<input type="hidden" value="environment_1" class="myView">
And later, I'm loading another page like:
$("#myContent").load("newPage");
Inside this new page I have a similar html tag:
<input type="hidden" value="environment_2" class="myView">
My problem is that after the load, if I do :
myEnv = $('.myView').val();
alert (myEnv);
It always show me environment_1
value. How could I get the new environment_2
value ?