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);
}
});

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 comment

Follow Tutorial on WordPress.com
categories
Calendar
September 2016
M T W T F S S
 1234
567891011
12131415161718
19202122232425
2627282930  
Follow me on Twitter
Blog Stats
  • 88,191 hits