Show input text into div popup jquery

I want to show a popup which has the value of input text I already entered.

I want to receive the input data from bnumber input and show it into the popup. But below code doesnt contain the bnumber data.

My code shows :

But I want to show like this:

Any help would be appreciated. Merve.


Currently, the script is running when the page is loading (and the input box is presumably empty), that's why you're not seeing the number in the popup. It looks like you're using jQuery Mobile popup. Assuming that's the case, you can listen to the popupbeforeposition event that fires right before a popup is rendered to the screen. You can use this event to take the current value from the input box and update the popup message...

$(function () {
        popupbeforeposition: function() {
            $('#po').html("<h3>Are you sure you want to cancel billing "
                           + $('#bnumber').val() + "?</h3>");


Need Your Help

JavaScript calls to methods from within constructors

javascript function methods constructor custom-object

I was reading the re-introduction to JavaScript on MDN website and came across this in the Custom Objects section:

how can i know that a stack is empty if i use this method to pop elements?

c stack

I'm trying to implement a stack in C using singly linked lists, it all works fine as long as the stack is non-empty. Once empty my pop method never detects that its empty but gives some random valu...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.