Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Text Input hidden via Children will not Show(). #6109

Closed
maxmayhem opened this issue Jun 20, 2013 · 1 comment
Closed

Text Input hidden via Children will not Show(). #6109

maxmayhem opened this issue Jun 20, 2013 · 1 comment

Comments

@maxmayhem
Copy link

Issue found in jQuery Mobile 1.3.1 and jQuery 1.9.1. (Also Mobile 1.3.0b1)
Applies to all browsers

When a text input is hidden via .children().hide() it cannot be unhidden with .show()

To reproduce:
http://jsfiddle.net/QY2kc/1/

@jaspermdegroot
Copy link
Contributor

@maxmayhem

The framework wraps the input element in a div with class ui-input-text during enhancement. The border, background and shadow styles are applied to this div. With .children() you target this wrapper, not the input. You can use .ui-input-text as selector when calling .hide() and .show(). We are also working on making it possible to add your own classes or ID to the generated wrapper by adding a data- attribute to the input element. See #3577 (comment).

Closing as not a bug.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants