I have a problem with Jquery :
<input type="hidden" id="is_subpage" value="FALSE" />
<input type="hidden" id="is_page" value="TRUE"/>
<input type="hidden" id="page_id" value="0"/>
<input type="hidden" id="page_domain" value="{tic}" />
<input type="hidden" id="sub_page_id" value="0"/>
<input type="submit" value="Save"/>
The above one is a portion of Html View code ,where page_id is making me trouble.
On the initialization its value is 0.
$.post("{t_url}", { selector : "load-content",id :dom },
function(data) {
$('#is_page').val('true');
$('#is_subpage').val('false');
$('$page_domain').val($('#page-list').text());
$('#editor').val('');
$('#page_id').val(data.user_template_id); // - Here is the problem
},'json');
The above code executing when i change the listBox,i can alert data.user_template_id,on that time i am getting values correct.But i can’t apply that on to Hidden field page_id.
what is wrong with me ? the main thing is it worked well about 2 hours ago ,but i made massive changes to system nw ,but why i cant to set the value ???
Thanks in advance.
I solved this,just replaced first line.