My new experience with jquery


Disable the all  input fields with unique (ID) like numbers  in table :

$(“#table_id  input[type=’text’][id=” + id + “]”).prop({
disabled: true
});

Disable the all  Select fields with unique (ID)  like numbers in table :

$(“select[id=” + id + “]”).prop({
disabled: true
});

Change the placeholder text in input field of table by unique (ID) like numbers :

$(“#table_user_lists input[type=’text’][name=’user_name’][id=” + id + “]”).attr(‘placeholder’, user_name);

jquery change function by name attribute of array:

$(‘input[name =”name[]”]’).change(function () { });

Enable the select of unique (ID) on each:

$(“#table_id *[id]”).each(function () {
if ($(this).attr(‘id’) == id) {
$(this).prop(‘disabled’, false);
}
});

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 javascript and jquery

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
September 2016
M T W T F S S
« Feb   Aug »
 1234
567891011
12131415161718
19202122232425
2627282930  
Follow me on Twitter
Blog Stats
  • 75,930 hits
%d bloggers like this: