Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] qTip input fields validation not working with display:none
24th July, 23:54 (This post was last modified: 24th July 23:55 by Maverick.)
Post: #1
[Solved] qTip input fields validation not working with display:none
So basically I have a qTip that appears on mouseover, and the contents are in a div with dislay:none. I have validation on the input fields in that container, but they do not work with display:none. If you make it display:block it works outside the qTip.

Here are the fiddles with display:block & display:none:
http://jsfiddle.net/qdwZN/
http://jsfiddle.net/qdwZN/1/

I'm trying to make it work with the second fiddle, display:none. Any idea on how to get this thing working?
Find all posts by this user
Quote this message in a reply
25th July, 00:33
Post: #2
RE: qTip input fields validation not working with display:none
Well since you've styled it as .hidden, that will apply to the HTML in your tooltip too. If you use .clone() instead of .html() qTip will show it for you Smile http://jsfiddle.net/qdwZN/5/

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
25th July, 00:53 (This post was last modified: 25th July 00:57 by Maverick.)
Post: #3
RE: qTip input fields validation not working with display:none
(25th July 00:33)Craig Wrote:  Well since you've styled it as .hidden, that will apply to the HTML in your tooltip too. If you use .clone() instead of .html() qTip will show it for you Smile http://jsfiddle.net/qdwZN/5/

Hi Craig,

The validation plugin does not work in your fiddle example Sad

If you check the first fiddle http://jsfiddle.net/qdwZN/ you'll see the form outside validates correctly (try hitting the submit button on it). If you try it in the qTip, it does not work
Find all posts by this user
Quote this message in a reply
25th July, 11:48
Post: #4
RE: [Solved] qTip input fields validation not working with display:none
Oh, try removing the clone in that case Smile It's because you're using an ID as the selector target but cloninjg it causes more than one to be on the page, which is invalid. http://jsfiddle.net/qdwZN/6/

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
25th July, 14:11
Post: #5
RE: [Solved] qTip input fields validation not working with display:none
(25th July 11:48)Craig Wrote:  Oh, try removing the clone in that case Smile It's because you're using an ID as the selector target but cloninjg it causes more than one to be on the page, which is invalid. http://jsfiddle.net/qdwZN/6/

Hi Craig,

The focus/blur validation works. So if you type a letter, then click outside, then remove it, the validation will trigger. But the validation for the submit of the empty fields never triggers the validation as it should inside qTip. Any idea why this happens? I also added a submitHandler function that if everything is validated, should execute the functions in it, but there seems to be an issue with the submit doing the validation, causing it not to work properly. http://jsfiddle.net/qdwZN/7/
Find all posts by this user
Quote this message in a reply
25th July, 14:34
Post: #6
RE: [Solved] qTip input fields validation not working with display:none
Use onRender instead and don't use an ID selector: http://jsfiddle.net/qdwZN/8/

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
25th July, 16:44
Post: #7
RE: [Solved] qTip input fields validation not working with display:none
Thank you Craig, works like a charm Smile
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  qtip only working the first time harjits 2 24 Yesterday 23:31
Last Post: Craig
  Dynamic contenct not working property in sortable cleung 5 737 8th December 18:45
Last Post: Craig
  Qtip "tip" won't display in IE9 cmiller 1 605 21st November 00:55
Last Post: Craig
  Youtube demo not working on ffox 6 & 7 ivanmayes 2 696 11th October 17:14
Last Post: ivanmayes
  [Solved] Why is this not working - Link nested in tooltip needed 1 546 12th September 17:10
Last Post: Craig
  [Solved] Use external urls to display relevant data placebo33 4 1,091 8th September 16:16
Last Post: Craig
  [Solved] Tool tip action is unexpected on display ktilcu 8 963 27th August 14:47
Last Post: Craig
  [Solved] qtip to display on another in another php/html place holder davidkhan 9 1,343 27th August 14:45
Last Post: Craig
  [Solved] Blanket Destroy not working migdalskiy 2 512 22nd August 22:44
Last Post: migdalskiy
  Unfocus Not Working biglesliep 1 760 13th August 12:50
Last Post: Craig



User(s) browsing this thread: 1 Guest(s)