Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: JQuery Troubles

  1. #1
    New to the CF scene
    Join Date
    Jan 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    JQuery Troubles

    Hello All,

    I have the following tag:
    <input type="hidden" name="ctl00$CPH1$hidPage" id="ctl00_CPH1_hidPage" />

    although I do not know the id until runtime, I do know that *hidPage will be unique on the page.

    how can I find this tag using JQuery?

    Thanks

    Jack

  • #2
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    $('input[id$="hidPage"]') = any input type element with an id that ends in hidPage

    ref - http://api.jquery.com/category/selectors/


  •  

    Tags for this Thread

    Posting Permissions

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