javascript - Multiple selectors: unrecognized expression -
i need select hidden field in order remove it. want select type, custom info attribute , name. selector looks like:
$("input[type=hidden] data-supplied='cola' name='companies[\"4425506\"]'").remove();
this giving me error:
uncaught error: syntax error, unrecognized expression: input[type=hidden data-supplied='cola' name='companies["4425506"]']
any thought of whats wrong? thanks.
you trying match multiple attributes. works matching 1 attribute; add together many [name=value]
selectors like, not separated anything:
input[type=hidden][data-supplied='cola'][name='companies[\"4425506\"]']
your code becomes:
class="lang-javascript prettyprint-override">$("input[type=hidden][data-supplied='cola'][name='companies[\"4425506\"]']")
javascript jquery jquery-selectors
No comments:
Post a Comment