JSFiddle - React, Tailwind, and code Playground

by aslancods

HTML

<table>
    <tr>
        <th>1st column</th>
        <th>2nd column</th>
        <th>3rd column</th>
    </tr>
    <tr id="formRow" >
        <td>
            <input type="text" value="input text" />            
        </td>
        <td>
            <select>
                <option> select </option>
                <option selected="selected" > select value 1 </option>
                <option> select value 2 </option>
            </select>
        </td>
        <td>
            <select>
                <option> select </option>
                <option selected="selected" > select value 1 </option>
                <option> select value 2 </option>
            </select>
        </td>
    </tr>
</table>
<div>
    <input type="button" value="click to change" id="click2Change" />
</div>

JavaScript

$('#click2Change').bind('click',function(){
    var formRow =  $('#formRow');
    var inputTags = formRow.find("input");
    var selectTags = formRow.find("select");
});