SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Aug 2011
    Location
    Trinidad and Tobago
    Posts
    194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Changing text with jquery and jquery mobile

    I have a some jquery mobile code on my page and I want to change the text within them using jquery for example I want to change the text within the header. and add content to the list.

    Code:
    <div data-role="page" data-add-back-btn="true" id="venues">
    			<div data-role="header">
    				<h1>Test</h1>
    			</div>
    			<div data-role="content">
    			<ul data-role="listview" data-filter="true" data-filter-placeholder="Search list..." id="customAlgorithm">
    usually you add content to the id of the div however am not sure what the id is for both the list and the header is in the code above.

  2. #2
    SitePoint Zealot
    Join Date
    Aug 2011
    Location
    Trinidad and Tobago
    Posts
    194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    figured it out seems that i needed an id for all the elements I wanted to edit


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •