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
About

myself pramodh kumar yet another php developer from India and have worked on oops,procedural,yii framework,codeigniter,wordpress,joomla,api and more.

Tagged with: , , ,
Posted in php

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow php tutorial on WordPress.com
categories
Calendar
May 2014
M T W T F S S
« Apr   Jun »
 1234
567891011
12131415161718
19202122232425
262728293031  
Follow me on Twitter
Blog Stats
  • 75,930 hits
%d bloggers like this: