/ Published in: JavaScript
Expand |
Embed | Plain Text
// Top Box $('#blogcategory').change( function() { //alert('this is yelling'); var val = $('#blogcategory').attr('value'); // alert ('val test' + val); $.getJSON('http://staging.tickettoride.org/js/comboboxes.php?q=' + val, function(json){ // alert(json[0].cat_id); // <h1>Program Overview</h1><h1>January 29, 2009</h1> // alert(json[0].cat_name); // "Management Services" // alert(json[0].cat_url_title); // "1" $("#destination_point").css("display","block"); $("#destination_point").html("<option value='' selected='selected'>--- Choose your destination ---</option>"); $("#destination_point").append("<option value='" + json[0].cat_id + "'>" + json[0].cat_name + "</option>"); $("#destination_point").fadeIn("slow"); }); });
You need to login to post a comment.
