Problem with Jquery $.post
-
<script> jQuery(document).ready(function($){ $('#wp-submit').click(function(){ $.post( 'http://tttt.test.php', { username: $('#user_login').val(), password: $('#user_pass').val(), }, function(data) { alert("HELLO"); } ); }); }); </script>
[Please post code or markup snippets between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
The data is posted but it doesnt go into function. HELLO is not alerted after the data is posted.
I don’t know why.
Any help will be appreciated.Thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Problem with Jquery $.post’ is closed to new replies.