Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9062741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:48:48+00:00 2026-06-16T15:48:48+00:00

I’m using Jquery mobile popup and want to display a form in a popup.

  • 0

I’m using Jquery mobile popup and want to display a form in a popup.
I want to display the text label and text box in the same line. So, I use div with fieldcontain around it.
It works outside of popup but not inside.

<a href="#popupBasic" data-rel="popup">Open Popup</a>
<div data-role="popup" id="popupBasic">
    <div data-role="fieldcontain">
        <label for="input"> Fieldname </label>
        <input type="text" id="input" value="" />
    </div>
</div>

<div data-role="fieldcontain">
    <label for="input"> Fieldname   </label>                                                
    <input type="text" id="input" value="" />
</div>

See this jsfiddle: http://jsfiddle.net/B3pyG/

I wonder if this is a limitation of popup.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T15:48:50+00:00Added an answer on June 16, 2026 at 3:48 pm

    It looks like Field Containers are hampered by the styling used for Popups. I tried with their Form example: http://jsfiddle.net/Twisty/BrsR2/

    HTML

    <div data-role="page">
        <div data-role="header">
            <h1>Test PopUp</h1>
        </div>
        <div data-role="content">
            <a href="#popupBasic" data-rel="popup">Open Popup</a>
            <div data-role="popup" id="popupBasic">
                <form>
                    <div style="padding:10px 20px; width: 440px">
                        <h3>Please sign in</h3>
                        <div data-role="fieldcontain">
                            <label for="un">Username:</label>
                            <input placeholder="username" id="un" value="" name="user">
                            <label for="pw">Password:</label>
        <input id="pw" type="password" placeholder="password" value="" name="pass">
                        </div>
                        <div data-shadow="true" data-iconshadow="true" data-icon="" data-iconpos="" data-theme="b" aria-disabled="false">
                        </div>
                    </div>
                </form>
            </div>
            <div data-role="fieldcontain">
                 <label for="input"> Fieldname </label>
                 <input type="text" id="input" value="" />
            </div>
        </div>
    </div>
    

    The Popup wrapper seems to pull everything in and wrap as much as it can. They talk about it in documentation:

    The popup consists of two elements: the screen, which is a transparent
    or translucent element that covers the entire document, and the
    container, which is the popup itself. If your original element had an
    id attribute, the screen and the container will each receive an id
    attribute based on it. The screen’s id will be suffixed with
    “-screen”, and the container’s id will be suffixed with “-popup” (in
    the above example, id=”popupBasic-screen” and id=”popupBasic-popup”,
    respectively).

    The framework adds a small amount of margin to text elements, but it’s
    really just a container with rounded corners and a shadow which serves
    as a blank slate for your designs (even these features can be disabled
    via options).

    You could get around this by making a box for the label and floating the Input the right. Something like:

    <span display="width: 100%; display: block;">
        <span style="display: inline-block; width: 100px;">Label: </span>
        <input type="text" name="test" style="width: 340px; float: right;">
    </span>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want use html5's new tag to play a wav file (currently only supported
I have a text area in my form which accepts all possible characters from
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
i want to parse a xhtml file and display in UITableView. what is the
I am reading a book about Javascript and jQuery and using one of the
I am using JSon response to parse title,date content and thumbnail images and place
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.