I am trying to select a table inside a form. Here is my html:
<div id="switcher-panel">
<form accept-charset="UTF-8" action="user/1/advancement" method="post">
<table class="table table-hover">
<thead>...<thead>
<tbody>...</tbody>
</table>
</form>
</div>
I can easily select the div “switcher-panel” with $('#switcher-panel'), but when I try to drill down to the table through the form with $('#switcher-panel' 'form') I get an Unexpected String error with a type of unexpected_token_string. I thought I had a pretty decent grasp on Jquery, but I am at a lost here. Is there a way to pass through the form or select the form that I am missing?
Use this:
or this:
Otherwise, it is invalid JavaScript code.