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
30 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

Question has a verified solution.

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

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to dynamically set the form action using jQuery.
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)

688 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