Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript JQuery Load

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30769
    CoolAsCarlito
    Participant

    I understand the function in yet I’m still not getting it to work properly.

    Your text to link…

    It needs to load the files out of the mods/filename.php sort of deal. Not sur e why its not working. I must have the actual load function wrong.

    #72854
    yoboubdir
    Member

    You have some syntax errors, try this


    $(document).ready( function() {
    $('a').click( function(e) {
    $('#content').load( $(this).attr('id').replace('/#//') + '.php' );
    e.preventDefault();
    } );
    } );
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.