Van Pham Van Pham - 2 years ago 102
Javascript Question

Internal Server Error 500 in $.post jquery?

My Jquery code:

$(document).ready(function() {
$.post($("#cat").val(), function(html){
return false;

My Html code:

<select name="cat" id="cat">
<option value="http://option1.html">Option 1</option>
<option value="http://option2.html">Option 2</option>
<div id="data">Hello World!</div>

But when i change selectbox to call ajax, I got Internal Server Error 500, please help me to solve?

Answer Source

If you are trying to get the contents of these html files, you should use $.get()


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download