• Recent Questions
  • Popular Questions

How do I assign an ID using another element’s TITLE in jQuery? Will the ID change, calling the function again?

    Majid F
    Posted 10 months ago

    Try this:

    var myli = $(‘li.back’);
    var mya = $(‘a#selected’);
    mya.id = mya.title;

Answer this Question :

You must be logged in to post an answer. Signup Here, it takes 5 seconds :)

Other Questions