Wednesday, October 19, 2022
HomeWordPress Developmentplugin growth - Easy methods to get the worth entered within the...

plugin growth – Easy methods to get the worth entered within the enter discipline in wordpres


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; 
     }

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments