Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save renatoschroepfer/4be6c730beef84d7c68b2292deb97c43 to your computer and use it in GitHub Desktop.
Save renatoschroepfer/4be6c730beef84d7c68b2292deb97c43 to your computer and use it in GitHub Desktop.
Combo Box 2
echo "<script>";
echo "function change(select) {";
echo " window.open('helpdesk.public.php?create_ticket=1&active_entity=' + select.value,'_self'); "
echo "}"
echo "</script>";
// ...
echo '<td>Local</td>';
echo '<td>';
echo '<select onchange="change(this)">';
echo '<option value="3">Tecnologia da Informação</option>';
echo '<option value="4">Comunicação</option>';
echo '</select>';
echo '</td>';
echo '</tr>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment