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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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 …
Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now