Items 1-12 out of 19652 displayed
The form is getting submitted and your page is reloaded. You need to stop the form submit.
Solution 1: Add a type
attribute to your button.
I think I got what you are asking for. Give it a try:
<html>
<head>
<title>Print TextArea</title>
<script type=text/javascript>...
function arraySearch(arr,val) {
for (var i=0; i<arr.length; i++)
if (arr === val)
return i;
return false;
}
Yes.
$(document).ready(function(){ // on document ready
$(.results .view-rooms).click(); // click the element
})
If you want to just check the current URL, then use