Drop Down List Inside Form.... How To Trigger The Action Without Button? January 07, 2024 Post a Comment sort by: sort by dateSolution 1: You need javascript for that.Although you should use unobtrusive javascript, the basic code looks something like:<select onChange="document.forms['form1'].submit();"> CopyYou attach an event handler to the change event and have it submit the form.Solution 2: This will require JavaScript, but if you are wiling to use jQuery then this is really easy. With jQuery it would be:$('#form1 select').on('change', function() { $('#form1').submit(); }); CopyIn JavaScript you are binding the onChange event of the select element. One way to do this is:<select onChange="document.form1.submit()"> CopySolution 3: The simplest way is to use javascript straight with your select element. The event is onChange. <select onchange="javascript:document.form1.submit();"> CopyYou can also go for jQuery based forms. Download jQuery javascript from http://jquery.com/ and include it in your HTML. After that, use : <select id="sort"> CopyAnd, inside your : $(document).ready(function(){ $("#sort").change(function() { $(this).parent().submit(); }); }); Copy Share Post a Comment for "Drop Down List Inside Form.... How To Trigger The Action Without Button?" Top Question Buttons Centered Over Canvas I have 4 overlapping canvases (acting as layers) positioned… Batch Conversion Of Docx To Clean HTML I'm starting to wonder if this is even possible. I'… Transfer A Mousewheel/scroll Event From One Div To Another I would like to know if it's possible and how to transf… Selecting Text Between Is it possible to select text between tags? I am working w… Prevent Grid Area From Expanding Causing Whole Page To Scroll I'm using the following grid layout: grid-template-colu… How To Limit The HTML Table Records In Each Page I am populating a table in my jsp which has more than 20 re… How To Limit The Html Table Records In Each Page I am populating a table in my jsp which has more than 20 re… Concatenate Parts Of Two Or More Webm Video Blobs Is it possible to to concatenate parts of two or more video… How To Play GSM Files In HTML5 I would like to play a GSM audio file within my HTML5 page … JQuery CSS - Slider Swipe Animation UPDATE: Updated the code and added a better example to clea… December 2024 (1) November 2024 (36) October 2024 (47) September 2024 (20) August 2024 (202) July 2024 (183) June 2024 (411) May 2024 (686) April 2024 (466) March 2024 (819) February 2024 (907) January 2024 (761) December 2023 (842) November 2023 (357) October 2023 (583) September 2023 (280) August 2023 (317) July 2023 (276) June 2023 (343) May 2023 (211) April 2023 (141) March 2023 (141) February 2023 (168) January 2023 (258) December 2022 (118) November 2022 (231) October 2022 (829) September 2022 (165) August 2022 (299) July 2022 (90) Menu Halaman Statis Beranda © 2022 - Html5 Playground