Hi,

I have build a function like this:

var init_number_of_bikes = function(){
                // Request all avail. bikes
                var urlextend = findBikes();
                $.ajax({
                        type: "get",
                        url:  "./includes/ajax.php?action=getBikes"+urlextend,
                        success: function(msg){
                                //alert(msg);
                                $('.nrBikes').html(msg)
                        }
                });
        }

And I am calling this funtion on several places.
Now I came to the point, where I want to pass an addtional value to
this function, like

init_number_of_bikes(chosen_id);

But how can I access this passed value within my function?

Reply via email to