Jump to content
MakeWebGames

Loading Form's With jQuery


Kieran-R

Recommended Posts

Hi,

I was having problems loading a form via jQuery. Basicaly, when you look at the source when you load it via jQuery, it goes like this:

<form></form>

<input type=.....

So the form doesnt work properly. Does anyone have a solution for this problem?

 

PS: Im loading it 'data'....

Link to comment
Share on other sites

But im actually loading the form from an external php file, and some of the values within the form different. Is there another way this can be done?

Ajax

$.ajax({

url: 'path',

dataType: 'html',

success: function (data) {

$(data).appendTo('body');

}

});

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...