We help IT Professionals succeed at work.

AJAX, ASP and JQUERY

slightlyoff
slightlyoff asked
on
I was able to do this in PHP, but for some reason, I'm struggling to do it in ASP.

I've simplified the code...  all I'm trying to do at the moment is trigger the "Hello".

The rest of my jQuery (not shown) works - if I can get it to trigger.

Thanks for your help!!!
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function() {
	
$('#form1 #submit1').click(function () {
		alert("hello!");
}
});	
</script>


<form name="form1" id="form1">
<table border="0" cellpadding="0" cellspacing="0" width="600px">
    <tr>
    	<td colspan="7" height="5px"></td>
    </tr>
    <tr>
    	<td><input type="submit" id="submit1" name="submit1" value="Next >>"/></td>
    </tr>
</table>
	<div class="loading1"></div>
    </form>

Open in new window

Comment
Watch Question

Top Expert 2011
Commented:
Please try attached code: Missing closing ) bracket

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function() {
      
$('#form1 #submit1').click(function () {
            alert("hello!");
})
});      
</script>


<form name="form1" id="form1">
<table border="0" cellpadding="0" cellspacing="0" width="600px">
    <tr>
          <td colspan="7" height="5px"></td>
    </tr>
    <tr>
          <td><input type="submit" id="submit1" name="submit1" value="Next >>"/></td>
    </tr>
</table>
      <div class="loading1"></div>
    </form>

Author

Commented:
Thanks!  Figures it would be somethin' like that :)

I appreciate the quick reply!

Explore More ContentExplore courses, solutions, and other research materials related to this topic.