Every line of 'how to get selected row value in html table using php' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
28 function getCellValue(row, index){ 29 var out = ''; 30 if ($(row).children('td').eq(index).find('img').length != 0) { 31 out = $(row).children('td').eq(index).find('img').attr('alt'); 32 33 } else if($(row).children('td').eq(index).find('a').length != 0){ 34 out = $(row).children('td').eq(index).find('a').text(); 35 } else { 36 out = $(row).children('td').eq(index).html(); 37 } 38 return out; 39 }
27 function getCellValue(row, index){ 28 return $(row).children('td').eq(index).html(); 29 }
1102 function getCellValue(row, field) { 1103 var obj = DOM.data(row, DATA_ELEMENT); 1104 return obj ? obj[field] : ''; 1105 }
538 function getColHtml( 539 table, data, field, rowIndex, fieldIndex, extraArgs 540 ) { 541 var fieldEditable = field.editable; 542 if ('function' == typeof fieldEditable) { 543 fieldEditable = fieldEditable.call(table, data, rowIndex, fieldIndex, extraArgs); 544 } 545 var iconClass = table.helper.getIconClass(); 546 if (table.editable && fieldEditable) { 547 return { 548 textClass: table.getClass('cell-editable'), 549 html: lib.format( 550 editentryTpl, 551 { 552 className: 553 table.getClass('cell-editentry') 554 + ' ' 555 + iconClass, 556 row: rowIndex, 557 col: fieldIndex 558 } 559 ) 560 }; 561 } 562 }
298 function cellview(name, row) { 299 300 if(name == "name") { 301 return '<b>' + row.name + ':</b>'; 302 } 303 if(name == "value") { 304 switch (row.name) { 305 case "tags": 306 retstr = "[ "; 307 for(var i = 0; i < row.value.length; i++) { 308 retstr = retstr + row.value[i] + " "; 309 } 310 retstr = retstr + "]"; 311 return retstr; 312 case "result": 313 return '<a href="' + row.value + '">load</a>'; 314 case "status": 315 return JOB_STATUS_TEXT[job.status]; 316 case "type": 317 return JOB_TYPES[job.type]; 318 case "render": 319 return job.render; 320 321 default: 322 return row.value; 323 } 324 } 325 326 }
32 function get_cells_html() 33 { 34 var res = ''; 35 36 for (var i = 0; i < 64; i++) 37 { 38 var line = []; 39 var marks = []; 40 41 for (var j = 0; j < 64; j++) 42 { 43 line.push(0); 44 marks.push(0); 45 46 res += '<div></div>'; 47 } 48 49 level_data.push(line); 50 mark_data.push(marks); 51 } 52 53 return res; 54 }
10 function get_row($row){ 11 var counter = $row.attr('data-counter'); 12 var row = rows[counter]; 13 if (row){ 14 return row; 15 } 16 var $modal = $row.parent().parent().parent(); 17 row = { 18 counter: counter, 19 $row: $row, 20 $modal: $modal, 21 $submit: $modal.find('button[type="submit"]'), 22 show_msg: function (msg, color){ 23 var $msg = $('<span>').html(msg); 24 if (color){ 25 $msg.css('color', color); 26 } 27 this.$row.find('.message').html('').append($msg); 28 }, 29 block: function(){ 30 this.$row.find('input,select').not('.email').attr('disabled', 1); 31 this.$row.addClass('blocked'); 32 this.$submit.attr('disabled', '1'); 33 }, 34 disable_known_field: function(field){ 35 this.$row.find('[name=' + this.counter + '-' + field + ']').attr('disabled', 1); 36 }, 37 reset: function(){ 38 // remove message and restrictions 39 this.$row.find('input,select').removeAttr('disabled'); 40 this.$row.find('.message').html(''); 41 this.$row.removeClass('blocked'); 42 if (!this.$modal.find('.row.blocked').length){ 43 this.$submit.removeAttr('disabled'); 44 } 45 } 46 }; 47 rows[counter] = row; 48 return row; 49 }</span>