Jquery issue while retrieving textbox name from wordpress widget box -
when tried retrieve textbox name wordpress widget using jquery, shows incorrect name.this actual textbox in widget form
< input type="text" value="" name="widget-nw_widget[3][heading][]" class="widefat" >
whereas when alert name of field using jquery shows widget-nw_widget[__i__][heading][]
.
this jquery used getting name attribute
alert( jqry( '.widget-content #ne_container .widefat' ).attr("name") );
Comments
Post a Comment