We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it possible to show multiple editable texts with using only one id. for example;
<a href="#" id="test" data-type="text" data-pk="2" >asd</a><br> <a href="#" id="test" data-type="text" data-pk="3" >dfg</a><br> <a href="#" id="test" data-type="text" data-pk="4" >ghj</a>
I want to make editable all lines that above with the code that below.
<script> $(function(){ $('#test').editable({ url: '/post', title: 'Enter username' }); }); </script>
With the codes that above, only the first line became editable.
The text was updated successfully, but these errors were encountered:
using the same idbreakes html standarts, it should be unique on the page. Instead use css class and data-name attribute:
id
data-name
<div id="mydiv"> <a href="#" data-name="test" data-type="text" data-pk="2" >asd</a><br> <a href="#" data-name="test" data-type="text" data-pk="3" >dfg</a><br> <a href="#" data-name="test" data-type="text" data-pk="4" >ghj</a> </div> $('#mydiv a').editable({ url: '/post', title: 'Enter username' });
Sorry, something went wrong.
Solved. Thank you very much.
No branches or pull requests
Is it possible to show multiple editable texts with using only one id. for example;
I want to make editable all lines that above with the code that below.
With the codes that above, only the first line became editable.
The text was updated successfully, but these errors were encountered: