jQuery ajax() vs get()/post()

In this case, I’d say $.get, as it’s immediately clear what the type of request is. At any rate, it’s just shorthand for the larger and more option-ified ajax call, and converting between the two is trivial in the worst case.

If you think that you’ll need fancy $.ajax options, use $.ajax. If you don’t use the convenience methods jQuery provides, such as .load, $.get, etc.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)