send option selection via. jquery

Posted by william on Stack Overflow See other posts from Stack Overflow or by william
Published on 2010-04-04T01:00:31Z Indexed on 2010/04/04 1:03 UTC
Read the original article Hit count: 406

Filed under:
|

Hey

I have some problems sending an id though jquery. I have a form select with some values, i want to "grap" the id when change option selection.

Output error: [object Object] !! :/

<select name="case_name" id="case_id">
            <option value="10009" >Case 1</option>
            <option value="10010" >Case 2</option>
            <option value="10011" >Case 3</option>
            </select>

$("#case_id").change(function(){ 
    var CASE_ID = $("#case_id").val();
});

var PARAMS = { "case_id": CASE_ID }; 

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript