aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes jQuery and HTML Form Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "jQuery and HTML Form " Watch "jQuery and HTML Form " New topic
Author

jQuery and HTML Form

James Splitter
Greenhorn

Joined: Feb 17, 2012
Posts: 1
Hi,
I have a regular JSP, and inside the form tags I have regular buttons and text boxes... I want to add a jquery dialog taht will coem up after I click a button next to an exisiting one.
My jquery logic works outside the form tags, where the button will display a dialog, but when adding this button inside the form it doesn't work. ANy ideas??
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56204
    
  13

Have you verified that the click handler for the button is firing when the button is moved?

The most likely cause of any weirdness such as this is usually malformed and invalid HTML markup. Have you validated the HTML?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Pavan Paravasthu
Greenhorn

Joined: Jan 31, 2012
Posts: 1
I think people can help you better if you post the code here.
Lilian Chase
Greenhorn

Joined: Jun 14, 2010
Posts: 24
If the values or content of the button is not involved in the form submission and its sole purpose is just to display a dialog box, it should work even if it is outside the form tags.

Make sure your JQuery event handler is declared correctly.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: jQuery and HTML Form
 
Similar Threads
Control Size of DIV Tag
jQuery-UI Dialog Container goes missing
How Can I Show a jQuery dialog after a hyperlink has been clicked
How to capture enter key?
Grails Tutorials Available.