refer javascript record jquery


i have rudimentary html. i am controlling jquery ajax purpose. now, i wish put javascript duty removed javascript file. syntax this? example, now book domain html something this:



<script>
<script type="text/javascript" src="scripts/scripts.js"></script>
<script type="text/javascript" src="scripts/jquery.js"></script>
<script form = "text/javascript" language="javascript">
$(document).ready(function() {
$("#submitform").click(submit());
});
</script>


but i wish put duty



function() {
$("#submitform").click(submit());
})


in record scripts.js. i distribute name duty ascribe it?



edit: i still have bit problem here: i altered formula



<script form = "text/javascript" language="javascript">
$(document).ready(function() {
$("#submitform").click(submitme);
});
</script>


and removed js file, i have following code:



var submitme = function(){
alert('clicked23!');
//$('#testing').html('news');
};


here's physique section:



<body>
welcome
<form id="submitform" action="/showcontent" method="post">
<input type="file" name="vsprojfiles" />
<br/>
<input type="submit" id="submitbutton"/>
</form>

<div id="testing">
hi
</div>

</body>


yet, still working, anything i miss?



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members