jQuery( document ).ready( function( $ ) {
$( "#texto-doc .raven-search-form-button" ).attr("disabled", "true");
$( "#texto-doc .raven-search-form-input" ).on( "change", function() { console.log( $( "#texto-doc .raven-search-form-input" ).val() ) ; var serie = $( "#texto-doc .raven-search-form-input" ).val() $( "#buscar-doc a" ).attr("href", "https://www.eurofred.com/es/recursos/documentos/" + serie);
} );
});
/*var bar= document.querySelectorAll('#documentosb .raven-search-form-input'); var lupa = document.querySelector('#documentosb .raven-search-form-button-svg'); var search = document.querySelectorAll ('#searchb .raven-button');
//Open url var text =document.getElementById('123').addEventListener('click', function(){ console.log('hago click');
var input = document.querySelectorAll('#documentosb .raven-search-form').getValue; //var urldocu="https://www.w3schools.com"; window.open("https://www.eurofred.com/es/recursos/documentos/"+input);
// document.getElementById('123').on('click' function(){ // console.log('voy'); //window.open('href'); //document.getElementById('123').setAttribute('href','https://www.google.es');
// });
})
//Preven Default lupa document.querySelector('#documentosb .raven-search-form-button-svg').addEventListener("click", function(event){ event.preventDefault() });
//Open window function openWindow() { document.querySelectorAll ('#searchb .raven-button').on('click', function(){ // document.querySelector('#searchb .raven-button').addEventListener("click", function(event){ event.preventDefault(); // }); var buttongo = document.querySelectorAll ('#searchb .raven-button'); var input = document.querySelectorAll('#documentosb .raven-search-form-input') if (input != ""){ var linkcompleto="https://www.eurofred.com/es/recursos/documentos/"+input; buttongo.setAttribute("href", "linkcompleto"); window.open('linkcompleto'); }
}); } //Click (window.open('linkcompleto') )
function sendPage(){
buttongo.onClick=openWindow(); }*/