Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I'm fetching multiple post from DB. There is a option for make post as Favourite, I'm using toastr for showing notification. every post has a id="favourite_ads". but toastr notification only works for the 1st post. But i want to show notification for all of the posts. I have uploaded snapshot.
Please help.
You need to change the id attribute by common classes since the identifier should ne unique in the same document.
If you've duplicated identifiers always the first one will be considered that why the toastr works just for the first post.
<a class="btn btn-defaul.... favorite_ads" ><span>add as Favourite </span></a>
$('.favourite_ads').click(function(){
...
});
Use class instead then your code should be like the above example.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
I have 3 icons
and html part is
Need these 3 icon click ?How to do this, its have same class name, same id
You can use the src attribute for this. I could see in the html image that there are two diff type of icons - GlobalCOnfig and Customer. SO you can do something like:
cy.get('[src*="/static/media/GlobalConfig"]').click()
cy.get('[src*="/static/media/Customer"]').click()
If you want to address the first one of these use .eq(0), for the 2nd .eq(1)and so on.
cy.get('#panelid-header).eq(0).click()
If you want to click all of them in succession
cy.get('#panelid-header).each(($el) => {
cy.get($el).click()
})
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
I have a master-detail setup like this:
https://stackblitz.com/angular/jxgxoekjyeb?file=src%2Fapp%2Fhero-detail%2Fhero-detail.component.html
I want the default browser display to show the detail view of the first master item. In the example provided at the url above, a detail item isn't displayed until a user manually selects an item from the master list. What would be an elegant way to dynamically trigger selection of the first item in this scenario so that the detail view is displayed on page load?
Setting this.selectedHero to be the first item on this.heroes inside #ngOnInit will do the trick.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I shouldnt even be in HTML/CSS, but here I am trying to incorporate a php modal contact form into my site...
I'm trying to get all of a demo form's functionality into my footer page (and then I'll restyle everything.)
http://danux.me/sections/footer_modal.html
I'm trying to get "email me" to fire ideally, but am settling now for just the Demo button to fire the popup form.
I also uploaded the demo form I'm pulling code from, just to make sure it works on my site. (It does.)
http://danux.me/contact/
Any guesses as to what I'm doing wrong?
Your first link is in a different folder, yet the url for $.get points to the same relative file. Which isn't there.
So in contact.js needs to have
$.get("../contact/data/contact.php", function(data){
I obviously cant test this. And it looks like there is some redesign in folderstructure coming up.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I'm trying to change or remove errors from a HTML page I'm using firebug add in firefox and I have this part which I really don't where its writen :
is there a way to get the file where this is write .
thanks for any hint
Continuing from my comment: The highlighted element is dynamically added by a slider plugin e.g. like http://jqueryui.com/slider/ The clue is the classes like ui-slider-handler.
Look for the id="voltage" to find the place in the HTML where the div is and look for #voltage or ("voltage" or 'voltage') to see where the plugin is connect to it (in any jQuery or Javascript code).
I don't think you can get the exact path of the file, but check "View page source" option to see what files the page has been linked to.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
Hey guys actually i'm trying to give my website users a possibility to click on a button and have some predefined text, in my case contact informations, to the clipboard.
These informations are already given in a div tag with the id="footer" and i want to fetch those or predefine them manually in syntax.
At the end of the page is a scissor, this is a after:element, this element ill change to a link or anything other so i can make it work.
Here's a link to the site
You can try this jquery plugin:
https://github.com/zeroclipboard/zeroclipboard
This makes it possible to copy text to youre clipboard with a button.