sorry guys, asked a bit wrongly, here is the EDIT
got a simple question, how to change the this jquery code to a javascript:
$("#gotoPage").click(function(){
var abr = $("#txtPageNumber").val();
paging_go_page_('cf_pages_form_name1',abr);
});
and this inputs:
<div class="gotoPage_div">
<input type="text" id="txtPageNumber" class="txtPageNumber" onkeyup="this.value = this.value.replace(/[^0-9\.]/g,'');check(this);" value="<cfoutput>#attributes.page#</cfoutput>" />
<span>Lütfen, sayfa numarası giriniz <cfoutput>1-#lastpage#</cfoutput></span>
</div>
<div class="gotoSubmit">
<input type="submit" id="gotoPage" class="gotoPage" value="Değistir" style="width:50px;" />
</div>
to smth like this:
function change_page {
var abr = document.getElementById('txtPageNumber').value;
document.change_page.action=paging_go_page_('cf_pages_form_name1',abr);
}
and i created a form and i want to change its action:
<form method="post" name="change_page" action="change_page()">
<div class="gotoPage_div">
<input type="text" id="txtPageNumber" onblur="if (this.value=='') this.value = this.defaultValue" onfocus="if (this.value==this.defaultValue) this.value = ''" class="txtPageNumber" onkeyup="this.value = this.value.replace(/[^0-9\.]/g,'');check(this);" value="<cfoutput>#attributes.page#</cfoutput>" />
<span>Lütfen, sayfa numarası giriniz <cfoutput>1-#lastpage#</cfoutput></span>
</div>
<div class="gotoSubmit">
<input type="submit" id="gotoPage" class="gotoPage" value="Değistir" style="width:50px;" />
</div>
</form>
thank you all for help!
1 Answer