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
22 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

822 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