Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renaming property not working #927

Closed
crhistianramirez opened this issue Oct 5, 2016 · 0 comments · Fixed by #1579
Closed

Renaming property not working #927

crhistianramirez opened this issue Oct 5, 2016 · 0 comments · Fixed by #1579

Comments

@crhistianramirez
Copy link

crhistianramirez commented Oct 5, 2016

When I try to change the href property, which is the grandchild of an element I'm adding to my json, it does not appear to actually change it. Here is my code:

if(data.children().children().is('a')){
        data.children().children().prop('href', 'thisshouldbesomethingelse') //changing property
        console.log(data.children().children().prop('href'));  //change appears to be reflected
        console.log(data.html());  //url in full html has not changed
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant