Solved

Can I submit the form with h:selectonemenu after styling it using jquery  ? Please chk my code here

Posted on 2010-11-16
3
24 Views
Last Modified: 2016-05-13
<input type="text" id="ProjectSelectionForm:project_input" class="selectbox" autocomplete="off" readonly="" tabindex="0"><div id="ProjectSelectionForm:project_container" class="selectbox-wrapper" style="display: none; width: 240px;"><ul><li id="ProjectSelectionForm:project_input_" class="selected">Select Project</li><li id="ProjectSelectionForm:project_input_959707001">Test P1</li></ul></div><select style="display: none;" onchange="submit()" size="1" class="selectmnustyle" name="ProjectSelectionForm:project" id="ProjectSelectionForm:project">      <option value="">Select Project</option>
      <option value="959707001">Test P1</option>
</select>
0
Comment
Question by:sonypattu
3 Comments
 
LVL 14

Accepted Solution

by:
sam2912 earned 500 total points
ID: 34144522
If you are trying to submit the form after this select has been changed (assuming it's in a form)

<select style="display: none;" onchange="submit()" size="1" class="selectmnustyle" name="ProjectSelectionForm:project" id="ProjectSelectionForm:project">
onchange="$(this).parents('form').submit();"

Open in new window

0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

by Julian Matz As of jQuery (http://jquery.com/) 1.4 the .live() method (http://api.jquery.com/live/) supports custom events as well as some standard JavaScript events that it previously didn't support. Among these is the submit event. Unlike …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question