Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Form Laravel Package

jquery-form/form

jQuery Form Plugin upgrades standard HTML forms to submit via AJAX with minimal setup. Use ajaxForm or ajaxSubmit to serialize and send form data, including file uploads, with extensive options and callbacks for full control over the submission process.

View on GitHub
Deep Wiki
Context7

The jQuery Form Plugin allows you to easily and unobtrusively upgrade HTML forms to use AJAX.

Frequently asked questions about Form
Can I use jquery-form/form for AJAX file uploads in Laravel?
Yes, this plugin seamlessly handles file uploads via AJAX. Configure the `ajaxForm` method with `target` or `url` pointing to your Laravel endpoint (e.g., `/upload`). Use `beforeSend` to show progress bars and `success` callbacks to process responses. Always validate files server-side in Laravel.
What Laravel versions does jquery-form/form support?
This plugin is frontend-only and works with any Laravel version (5.x–10.x). No backend integration is required—just ensure your Laravel routes/APIs handle the AJAX submissions. Tested with jQuery 1.7.2+, which is compatible with modern Laravel stacks.
How do I integrate jquery-form/form with Laravel Blade?
Include the plugin via CDN or Laravel Mix, then attach it to forms in Blade. Example: `<form id='myForm'>...</form>` followed by `$('#myForm').ajaxForm({ url: '/submit', success: function(response) { alert('Success!'); } });`. Use `@csrf` in Blade for CSRF protection.
Is jquery-form/form still maintained? Should I use it for new projects?
The last release was in 2020, but it includes minor fixes (e.g., IE11 iframe handling) and a new `beforeFormUnbind` callback. For new projects, consider alternatives like Laravel Livewire or Alpine.js unless you need jQuery for legacy/IE11 support. Monitor the repo for jQuery 3 compatibility updates.
How do I handle form validation with jquery-form/form in Laravel?
Client-side validation is insufficient—always validate in Laravel. Use the plugin’s `beforeSubmit` callback to trigger client-side checks, then return `false` to prevent submission. Laravel’s validation (e.g., `Validator::make()`) will handle errors, which you can display via AJAX responses.
Does jquery-form/form work with Vue.js or React in Laravel?
Yes, but use it cautiously. Scope jQuery forms to non-reactive parts of your app (e.g., legacy forms). For dynamic SPAs, prefer native `fetch` or Axios. The `beforeFormUnbind` callback helps clean up jQuery event listeners in hybrid apps, but avoid mixing jQuery with Vue/React state management.
How do I show upload progress bars with jquery-form/form?
Use the `uploadProgress` callback in `ajaxForm` or `ajaxSubmit`. Example: `uploadProgress: function(event, position, total, percentComplete) { $('#progressBar').css('width', percentComplete + '%'); }`. Pair this with Laravel’s file upload handling (e.g., `request()->file()`).
What’s the difference between ajaxForm and ajaxSubmit?
`ajaxForm` binds to the form’s submit event and handles all submissions automatically. `ajaxSubmit` triggers a one-time submission. Use `ajaxForm` for traditional forms and `ajaxSubmit` for dynamic triggers (e.g., button clicks). Both support identical options like `dataType`, `beforeSend`, and `success`.
Will jquery-form/form slow down my Laravel app?
Minimal overhead—it’s a client-side plugin. For file uploads, offload processing to Laravel queues (e.g., `UploadFileJob`). Test with tools like Lighthouse or Chrome DevTools to measure performance. Avoid heavy client-side logic; keep validation/server-side logic in Laravel.
Are there alternatives to jquery-form/form for Laravel?
For modern apps, use Laravel Livewire (full-stack reactivity) or Alpine.js (lightweight). For file uploads, consider Dropzone.js or Uppy. If you’re tied to jQuery, this plugin remains a robust choice for legacy systems, but evaluate maintenance risks given its last release was in 2020.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle