I have the same id on two different pages in JQM.
Question:
How can I access this identifier with page identifiers as you know, in JQM each page has its own id:
$('#pageId #textfieldId').val();
Or something different?
Use the code below to get the value of the text area on the active page.
$.mobile.activePage.find('textarea').val();
Instead:
Using:
$('.pageId .textfieldId').val();
You can only run a unique identifier
$('#pageId').find('textfieldId').val();
Source: https://habr.com/ru/post/1484708/More articles:WCF discovery with service hosts using net.tcp: //0.0.0.0: 0 / blah declares net.tcp: //0.0.0.0: 0 / blah - c #Perl XML :: Twig - saving quotes in and around attributes - perlClojure / Jetty: Force url to be only once - lockingIs there a canonical way to ensure that only one instance of a service is running / starting / stopping in Clojure? - multithreadingPython: importing parent and child classes from different modules - pythonWhat XML Comment Tags Are Supported in Object Explorer - .netClicking bootstrap carousel image looks distorted - htmlSet html textarea attribute dynamically? - htmlserialize an object as null based on one of its properties - jsonJQuery clone, replace number in id and name attributes - jqueryAll Articles