So right now, I have a few forms where as one is submitted, it retrieves another in a modal. So right now, I might have a link to example.com/modal/1, which opens the first modal. However, if javascript is not enabled (so the browser actually follows the link), then some html displays (the html that was going to be retrieved.). I'd like to be able to style this, so I'm guessing I should make an entire html page with stylesheets and all, but here's what I'm wondering:
With jquery's load()
, I know you can choose an element id like '#form'
which will parse what the request gets back and just use the #form element. I'd like to be able to use something like that, but I'm using the post()
functionality.
Ideas on how to do this?