Dynamic query


pranabeshchand

Dynamic text page


/* function tag(){
var text_tag=$(“#text_tag”).val();
alert(text_tag);

} */
$(document).ready(function() {
$(‘#text_tag,#text_service,#text_subserv,#text_cat,#text_sub_cat’).change(function() {
var me = $(this);
var data = {
action : “updateRec”,
banner_tag : $(“#text_tag”).val(),
service : $(“#text_service”).val(),
service_sub : $(“#text_subserv”).val(),
category : $(“#text_cat”).val(),
category_sub : $(“#text_sub_cat”).val()
};
$.post(“homepage_text_manage_action.php”, data, function(result) {
result = JSON.parse(result);
if(result.error == 0){
me.after(“Updated Successfuly…”);
setTimeout(function(){
$(‘#upd-msg’).remove();
},2000);
}
});

});

});

<li style=”width: 100%; float: left;”>

Banner Tagline:

” />


</li> <li style=”width: 100%; float: left;”>
Services:

” />
” />


</li>
<li style=”width: 100%; float: left;”>
Category:

<div class=”eID” style=”width:400px; padding-top:5px;”>

<input type=”text” name=”text_cat” id=”text_cat” class=”reg_txtfld” value=”<?php echo $ram[3];?>” />
<input type=”text” name=”text_sub_cat” id=”text_sub_cat” class=”reg_txtfld” value=”<?php echo $ram[4];?>”…

View original post 101 more words

Advertisements