trying to make a select all or select none option on form
-
I am running the template theme called petsitter.
I have added the following hack
<div> <a href="" id="checkbox_all" class="job_types">all</a> / <a href="" id="checkbox_none" class="job-manager-filter">none</a> <script> jQuery('#checkbox_all').click( function (event) { console.log(event); event.preventDefault(); jQuery('.checkbox__custom input').prop( "checked", true); jQuery(".job_filters, .resume_filters").submit(function(){return!1}); } ); jQuery('#checkbox_none').click( function (event) { console.log(event); event.preventDefault(); jQuery('.checkbox__custom input').prop( "checked", false); jQuery(".job_filters, .resume_filters").submit(); } ); </script> </div>
As you can see I was trying to trick the ‘all’ and ‘none’ links into activating the ajax feature of the form by adding the same class as other elements that seem to activate this feature. No luck so far. Any suggestions would be really appreciated.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘trying to make a select all or select none option on form’ is closed to new replies.