Dynamic Selectbox not working

I make the dynamic selectbox by using jquery, ajax, and php. I implement it use OOP and not working. I hope ur help for being easy. This following the source code:

here’s code of header.php http://pastebin.com/qsx5J3hE
here’s owner-payment-add-dynamic.php http://pastebin.com/bkCWNJvj
and here’s owner-payment-add.php http://pastebin.com/Z2hUhvaZ

please help me, thank you

what should this mean for anyone who does not know what you want to achieve and what problems you had as you are not providing any error messages?

1 Like

nothing information of error. my apps just not working or not renponse. i confused… can you see my source here:

<script type="text/javascript">
        $(document).ready(function()
        {
            $(".id_room").change(function()
            {
                var id=$(this).val();
                var dataString = 'id_room='+ id;
           
                $.ajax
                ({
                    type: "POST",
                    url: "owner-payment-add-dynamic.php",
                    data: dataString,
                    cache: false,
                    success: function(html)
                    {
                        $(".id_renter").html(html);
                    }
                });
            });
        });
</script>

if I do not use OOP succeed. But when I use OOP no response is happening

is your success function called? try with console.log('success') and have a look at the console with F12

it’s work. thank you

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.