jquery - progressive enhancement and ajax -
So now, there are some of my forms where one has been submitted as one, it receives one in the other model . So right now, I can have a link to example.com/modal/1, which opens the first model. However, if Javascript is not enabled (the browser actually follows the link), then some HTML displays (HTML which was being retrieved.) I want to be able to style it, so I'm guessing that I should make a whole HTML page with stylesheets and everyone, but here's what I'm thinking:
jquery Load ()
, I know that you can select an element ID such as '# form'
which will parse that when the request is back and just # form element Use I want to be able to use something like this, But I'm using the post ()
functionality.
Consider how to do this?
If you add objects (key / value) to second ( data ) Near the parameter
$ Load
, this will make a post request from:
The post method is used if the data is provided as a commodity; Otherwise, GET is considered.
Comments
Post a Comment