PDA

View Full Version : Resolved Html form inside Anylink CSS menu



Paramasivan
02-25-2013, 05:29 PM
1) Script Title: AnyLink CSS Menu v2.3

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/anylinkcss.htm

3) Describe problem: I have placed html form inside Anylink CSS menu. When the input field is clicked the menu disappears.



<div class="rings">
<a href="" class="anchorclass" rel="anylinkrings1">Rings</a>
<div id="anylinkrings1" class="anylinkcsscols3">
<div class="column">
<h1>Radius (in miles)</h1>
<form name="ringsdist" method="post" action="scripts/rings.php">
<input type="text" name="strfirstdist" value="1" onfocus="if (this.value == '1') {this.value = '';}" onblur="if (this.value == '') {this.value = '1';}" />
<input type="text" name="strseconddist" value="3" onfocus="if (this.value == '3') {this.value = '';}" onblur="if (this.value == '') {this.value = '3';}" />
<input type="text" name="strthirddist" value="5" onfocus="if (this.value == '5') {this.value = '';}" onblur="if (this.value == '') {this.value = '5';}" />
<input type="submit" value="">
</form>
</div>
</div>
</div>

Any help ?

ddadmin
02-26-2013, 03:15 AM
Sure, try the below modified .js file, which prevents the drop down menu from hiding when the user clicks on a form related element inside it.

Paramasivan
02-26-2013, 07:11 AM
Thank you very much for your quick response !

"Rings", "Donuts" & "Drive Times" are now working at http://giswebsites.com/grant/property-search.html