[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
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
Medium Priority
?
42 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 2000 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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

I have answered several questions lately that were solved utilizing the power of jQuery's AJAX functions, so I thought I would write an article demonstrating the ease of use. Why should I use jQuery as opposed to regular JavaScript? Now I know…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
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…
Suggested Courses

649 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