If you have multiple <a href="#" class="editinline">#</a>
your jQuery
should use on()
to save memory. Add .editinline
selector to attach the function (handler) to multiple elements (in this case — <body>
children)
jQuery('body').on('click', '.editinline', function(){
var now = jQuery(this).closest('tr').find('td.column-special_star').text();
//console.log(now);
if (now.charAt(0)=='S') {now_i = '1';};
if (now.charAt(0)=='N') {now_i = '0';};look like this
//console.log(now_i);
jQuery('#special_star_val').val( now_i );
});
https://jsfiddle.net/47fd3fnu/
If you have single, you can use click()
which is a shortcut to on('click', '...', '...')
:
jQuery('.editinline').click(function(){
..........
});
Related Posts:
- Why do my quick edits for custom taxonomies not show on the post frontend?
- How to only list the child terms of a taxonomy and not their parents?
- How to use taxonomies on attachments with the new Media Library?
- Hierarchical taxonomy UI
- How to display custom taxonomies in posts?
- Filtering custom taxonomies
- Allowing specific users to only add posts using certain custom taxomy terms
- Edit tags page for hierarchical taxonomy doesn’t show taxonomies at all depths
- I want to load post content by categories using Ajax
- Hook to process a new taxonomy tag before it is created?
- Removing taxonomy base using WP rewrite
- get_terms() returns an empty array
- Scheduling posts to update once per day with wp_cron
- How to find taxonomy name using only taxonomy TERM ID (or taxonomy term name)
- Multiple users – only allow them to manage their own terms for custom taxonomy when logged in
- WP_insert_term how to insert multiple values as taxonomny term?
- How to include parent terms in hierarchical taxonomy URLs?
- Permalinks for quote authors
- How do I display a tag cloud with both post tags AND a custom taxonomy?
- Custom taxonomy term as class?
- How to edit/remove a term that’s in multiple taxonomies?
- Using a loop to display terms associated with a post
- Custom Taxonomy: Parent still counting deleted Child
- Improving WP_Query performance for multiple taxonomies
- Create Child Taxonomies
- In a loop of custom post type, display first custom taxonomy term
- how to create a proper query for getting a list of users with taxonomy related meta key
- Taxonomy page template changing when using query variables
- Get direct children of custom taxonomy
- How to add autocomplete to custom taxonomy for CPT
- List subcategory on taxonomy term page
- Operations with custom fields values in a loop
- How to get custom post type taxonomy
- Using wp_list_categories to show more than one custom taxonomy
- Show all posts without a custom taxonomy
- remove sanitize_title() for register_taxonomy()
- How do I taxonomy terms based on terms they are used alongside?
- Can I use a Custom Meta Value inside of ‘get_the_terms’?
- How can I populate a select element with terms from a custom taxonomy and filter post results?
- How do I list the pages of a custom taxonomy?
- has_term if/echo else/echo function
- Why does a new taxonomy term get created when I assign an existing term to a post?
- Add Image Uploader In Admin Panel
- Tell the difference between a term and page when they have the same ID
- add hirarchy of categories in products grid of visual composer
- WP_Terms_List_Table Quick Edit not working
- Widget dropdown always displays first option
- How to get posts which must match both custom taxonomies?
- Display all taxonomy, children and grandchildren with links
- Using custom taxonomies to display hierarchical URLs?
- Passing form inputs into multi-taxonomy query
- Custom Taxonomy Tag Cloud?
- Taxonomy Parent Name
- Having Issue on Passing Variable into HTML Class Tag
- Make child taxonomy categories use a set template
- Copy/clone/associate Custom field to Custom Taxonomy
- Query posts using custom taxonomy and selected terms
- Load a certain functions file for a certain taxonomy
- tax_query: Don’t show posts with parent term when they have a corresponding child term applied
- one post per term taxonomy
- Can’t get taxonomy ID for each post on archive page
- How do I get the labels from a post
- Hide custom taxonomy from easy admin
- Add file attachments/meta to a custom Taxonomy
- Displaying user selected custom tags/taxonomies on the front-end
- Why can’t I access Custom Taxonomy metadata?
- Permalinks with custom taxonomies and regular categories
- WP_Query tax_query – Show results if child has parent X
- Running a function only once when a taxonomy term is changed
- Taxonomy or Custom Field
- Trash Bin for Categories?
- Custom taxonomy – checking if name includes a declared value
- Wp_insert_term doesn’t work from separate file with custom taxonomy
- How to add a shortcode function that returns the taxonomy slug of the actual post within the loop
- Random order not working correctly when using default loop + $query->set
- Convert post meta to custom taxonomy?
- How to create filter’s for custom taxonomy page
- How to get a taxonomy by a term slug?
- Query by multiple custom taxonomies
- get the custom taxonomy name?
- Modify title of custom taxonomy archive page
- Catchable fatal error: Object of class WP_Error
- WordPress custom taxonomies new/edit post autocomplete
- Templates files for custom post type with custom tags
- taxonomy query on front page
- Change taxonomy of posts
- Pagination with custom query (not using posts)
- What’s the proper WordPress URL for the template of my custom taxonomy?
- WordPress show posts from children terms of a taxonomy term
- Get Posts with matching lowest taxonomies
- How to randomise a custom taxonomy tag cloud
- Any way to make custom taxonomy field searchable?
- query posts returns 10 records
- Select Custom Taxonomy from Theme Options
- Remove Tag Cloud Words from Custom Taxonomy
- Add Gutenberg editor to edit taxonomy (category) page
- post_type_link not working for posts without terms
- Why my archive title isn’t showing?
- Two taxonomies with the same slug
- Hook function when taxonomy terms change