Monday, November 18, 2013

demo selection error

www.phamngoctan.com demo một vài selection error mà coder hay gặp phải

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<script type="text/javascript">
<!--
 jQuery(document).ready(function(){
  jQuery(".testClick").click(function(){
   var href_contact = "{root}";
   href_contact = href_contact+"contact/ajax?sendId=1";
   console.log(href_contact);
   $.ajax({
    type: "POST",
    url: href_contact,
    cache: false,
    success: function(data)
    {
     alert(data);
    }
   });
  });
 });
//-->
</script>
<div class="contact_form">
 <h1>Contact form</h1>
 <a href="javascript:void(0)" class="testClick">Click to send ajax</a>
</div>
Chia sẻ ngay với bạn bè bài viết này
Facebook Pinterest StumbleUpon Delicious Reddit Digg Email Delicious

No comments:

Post a Comment