JSFiddle - React, Tailwind, and code Playground

by bthorn

HTML

<table>
    <tr>
        <td style="width:150px;">
            <input name="GridView1:_ctl2:txtStormTimeOn" type="text" value="10-21-2015 6:13" id="GridView1__ctl2_txtStormTimeOn" />
        </td>
        <td style="width:5px;"></td>
        <td style="width:150px;">
            <input name="GridView1:_ctl2:txtStormTimeOff" type="text" id="GridView1__ctl2_txtStormTimeOff" />
        </td>
        <td style="width:500px;"> <span id="GridView1__ctl2_txtComments">test call out -jmg</span>

        </td>
        <td style="width:500px;">
            <input name="GridView1:_ctl2:txtStormComments" type="text" maxlength="400" id="GridView1__ctl2_txtStormComments" style="width:400px;" />
        </td>
        <td style="width:5px;"><a href="javascript:__doPostBack(&#39;GridView1$_ctl2$_ctl0&#39;,&#39;&#39;)">Update</a>&nbsp;<a href="javascript:__doPostBack(&#39;GridView1&#39;,&#39;Cancel$0&#39;)">Cancel</a>
        </td>
    </tr>
</table>

<input id="testSubmit" type="button" value="submit">

JavaScript

//thisClicked.closest("table").find('.platform').val(data.platform);


//$('table').each(function(){
    
//});


$("#testSubmit").click(function () {

 var x = $('a:contains("Update")');
 
 console.log(x);
 //or an exact match 
 
 var y = $('a').filter(function(index) { return $(this).text() === "Update"; });
 
 console.log(y);
 
});