jquery - How to put new sequence in a Sortable Table wtih <input> field -


i put jsfiddle explain better need.

i created similar table of work orders have in our system. created form able sort working sequence (the priority). added sortable plugin , can drag , drop place.

however, cannot figure out how put new sequence input field call "sequence"

in example of avtex blog steven ray can done need, except change line:

//renumber table rows function renumber_table(tableid) {     $(tableid + " tr").each(function() {         count = $(this).parent().children().index($(this)) + 1;         //alert(count);          //$(this).find('.priority').html(count);  <--- original line      //////  i'm trying select input field,      //////  , place value of count it.  not      //////  working, cannot figure out correct line.          $(this).find('.priority').("input").val(count); }); } 

thank in advance curing ignorance.

jp in kc

thanks hackerman making jsfiddle work!

the answer question is:

$(this).find('.priority :input').val(count); 

the jsfiddle has been updated show how works.

my hackerman providing tool me solve own problem.

thanks jp in kc


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -