Wednesday, 25 November 2020

Get input value from the table using class name in jquery

 

//////// Assign Value

$("input[name^='news']").val("news here!");

////////// Filter

  $('#ControlID').find('input:not("button")').filter(

      function () {

        return $(this).hasClass('className')

  });

///////////////////// Get val

$('#ControlID tr').find('input[class="ClassName"]').val()


No comments:

Post a Comment

How to highlight selected text in notepad++

  –> To highlight a block of code in Notepad++, please do the following steps step-1  :- Select the required text. step-2  :- Right click...