Getting selected value

Getting selected value

How do I get the selection option using jquery from a table where the last celle contains something like


  1. <td>
  2.      <form action="" method="post">
  3.      <select name="moderation">
  4.             <option>offline</option>
  5.                 <option selected="selected">online</option>
  6.           </select>
  7.          <label>Delete: <input type="checkbox" name="delete" value="delete"></label>
  8.          <input type="submit" value="update review"/><br />
  9.      </form>
  10. </td>

I need something like

$(".data tr td form").each(function(){

}

But I am a bit stuck after that

Thanks



    • Topic Participants

    • info