Van Pham Van Pham - 10 months ago 48
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?


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