0

I have a jQuery implemented functionality that finds an element:

$('#' + id).dialog('close');

What's the AngularJS version of $('#' + id)?

3
  • 4
    I don't think the jqlit version implemented by angularjs has selector support - angular.element - so you can use document.querySelector or document.querySelectorAll or other methods like document.getElementById based on your need - or include jQuery also in your project and make full use of it Commented Nov 3, 2014 at 5:11
  • instead of $ you can use angular.element function to get the element angular.element('#'+id) Commented Nov 3, 2014 at 5:52
  • stackoverflow.com/questions/24629370/… Commented Feb 23, 2016 at 13:47

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.