Javascript: How can I get/change an attribute inside the Placeholder ="{"id":"10","Selected":false}"

Asked

Viewed 27 times

0

Hi Guys.

At first I didn’t even know you could put those attributes inside of the Placeholder, hehehe, had never seen.

<div class="cellContent" placeholder="{"id":"103","selected":false}"></div>  

If possible any of you can send me some link where you have some explanation about this feature... because I did not find anything about these attributes in specific, but more importantly even and if you know how to change using them, arose this doubt in me.

Something like this: change the property (Selected) or check which the id that contains.

Tamo together.

  • Can’t put " inside ". If you look at interpreted html you will see that it is not what you wrote, so it is incorrect even.

  • What’s the right way to do it?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.