Grabbing Two Values Javascript
<p>I am grabbing the values from a listbox and passing it on to another listbox, I had everything working with one value $Lid, but now I need two $Lid and $Cid, is this the correct way to do this?</p>

<pre><code>    $(document).ready(function()
{

 $(".Doggie").change(function()
{
var LocationString = $(this).find(":selected").val();
    var CityString = $(this).find(":selected").val();
    $.ajax({
        type: "POST",
        url: "ajax_city.php",
        data: {Lid : LocationString, Cid : CityString},
        cache: false,
        success: function (html) {
            $(".Kitty").html(html);
        }
    });
});

$('.Kitty').live("change",function(){
    var LocationString = $(this).find(":selected").val();
    var CityString = $(this).find(":selected").val();
    $.ajax({
        type: "POST",
        url: "ajax_area.php",
        data: {Lid : LocationString, Cid : CityString},
        cache: false,
        success: function (html) {                                     
$(".Pig").html(html);
} 
});

});
});
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
        &lt;div id="frame1"&gt;
        &lt;label&gt;Place :&lt;/label&gt;
        &lt;select name="Doggie" class="Doggie" id="Doggie"&gt;
        &lt;option selected="selected"&gt;--Select Place--&lt;/option&gt;
        &lt;?php
                $sql = mysql_query("SELECT tblLocations.RestID as Lid, tblLocations.CityID as Cid, tblRestaurants.RestName as name
            FROM tblRestaurants INNER JOIN tblLocations ON tblRestaurants.RestID = tblLocations.RestID
             GROUP BY tblLocations.RestID, tblRestaurants.RestName
            ORDER BY tblRestaurants.RestName ASC");
        while($row=mysql_fetch_array($sql))
        {
        echo '&lt;option value="'.$row['Lid'].''.$row['Cid'].'"&gt;'.$row['name'].'&lt;/option&gt;';
        } ?&gt;
         &lt;/select&gt;
        &lt;label&gt;City :&lt;/label&gt;
         &lt;select name="Kitty" class="Kitty" id="Kitty"&gt;
         &lt;option selected="selected"&gt;--Select City--&lt;/option&gt;
        &lt;/select&gt;
        &lt;label&gt;Area: :&lt;/label&gt;
         &lt;select name="Pig" class="Pig" id="Pig"&gt;
        &lt;option selected="selected"&gt;--Select Area--&lt;/option&gt;
        &lt;/select&gt;
        &lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>And...</p>

<pre><code>&lt;?php
require ('config.php');

if ($_POST['Lid']) {
    $Lid = $_POST['Lid'];
    $sql = mysql_query("SELECT tblLocations.RestId as Lid, tblLocations.CityID as Cid,     tblCities.CityName as name
                FROM tblLocations INNER JOIN tblCities ON tblLocations.CityID = tblCities.CityID
                WHERE tblLocations.RestID = $Lid
                GROUP BY tblLocations.RestID, tblCities.CityName
                ORDER BY tblCities.CityName ASC");
    echo '&lt;option selected="selected"&gt;--Select City--&lt;/option&gt;';
    while ($row = mysql_fetch_array($sql)) {
        echo '&lt;option value="' . $row['Lid'] . '' . $row['Cid'] . '"&gt;' . $row['name'] . '&lt;/option&gt;';
    }
}

?&gt;
</code></pre>

<p>Right now its not returning anything so I have to assume its wrong.  Thank you.</p>
