Welcome Guest, Not a member yet? Register   Sign In
Something about ajax with jquery ?
#1

[eluser]Mr.CodeIgniter[/eluser]
i use ajax with jquery library

and i need to put ajax result in <div> .
Code:
$.get("&lt;?=$CI->config->item('base_url')?&gt;/RegAjax/NewTab/"+tab_counter, function(data){
    $("#tabs-"+tab_counter).append(data);
});

if you see the code in {function(data...etc} i want get ( tab_counter ) from out
the function.
how i can do it.
#2

[eluser]Georgi Budinov[/eluser]
Can you show us where do you define tab_counter? In order to access it like this you will have to define that in the global with:

var tab_counter = 0;




Theme © iAndrew 2016 - Forum software by © MyBB