i had an onclick event for a button and it worked fine. now it doesnt and im trying to see why not. it worked for a little bit and i think i changed something, but the code seems correct. i think there may be some outside factors influencing the code possibly.
here's my code:
<script language="javascript">
function search(){
document.write("hi");
}
</form>
<input type="button" value='s' name='submit' id='submit' onClick='search();'>
</form>
<div id='searchdrop'>
stuff inside dropdown
</div>
.butand the/