I’ve the under code on my WordPress web site. what I’m doing is, when the consumer enters any key within the enter discipline then I’ve to get that worth in my perform. I’ve tried the under code however I’m not getting it.
would you assist me out with this
perform blogsearch( $atts ){
$knowledge="<div class="input-group blogsearch-fields">
<enter sort="textual content" class="form-control" title"blog-list-search" id="blog-list-search" placeholder="Search">
</div>";
$knowledge.='
<script>
(perform($) {
jQuery(doc).keypress(perform(e) {
//jQuery(doc).bind("keypress", perform(e) {
//jQuery(doc).keydown(perform(){
//jQuery("#blog-list-search").on("enter", perform() {
var id=jQuery("#blog-list-search").val();
var id1=jQuery(this).val();
var dInput = this.worth;
//alert(id);
//console.log(e.keycode);
console.log(id);
console.log(id1);
console.log(dInput);
});
})(jQuery)</script>
';
return $knowledge;
}