Build with IDX Broker › Forums › IDX Broker Control Panel › Javascript in Control Panel › Hiding drop down options in advanced fields using Javascript / jQuery
Tagged: hide advanced field options, javascript
-
AuthorPosts
-
-
Our client wants to hide some of the advanced criteria options
for the area field on their advanced search page. We have tested using a script (we believe you may
have given us this script originally!):<script type=”text/javascript”>
var select=document.getElementById(‘IDX-a_area’);
for (i=0;i<select.length; i++) {
if (select.options[i].value==’Adelaide’) {
select.remove(i);
}
}
</script>The problem, as far as we can tell, is that the script is loading BEFORE
the advanced options appear, which is why this isn’t working.
Ultimately, we just want to hide some of the options under the ‘areas’
field on the advanced search page…so please let me know if there is
another way to accomplish this or let us know what we might be doing wrong!(0 rating, 0 votes, rated)
You need to be a registered member to rate this post.Loading... -
I have a script that does exactly this which i wrote for a client a few months back. essentially, the way i got around the ajax was to write in a checker that looked for the presence of a different field that would be loaded by the ajax. when it finds this field it then does the dom rewrite. i put it in the page subheader in idx and it works great. I’ll give you a deal, half off my normal price for this script if you just want my version. shoot me an email if so ren@idxforge.com
(0 rating, 0 votes, rated)
You need to be a registered member to rate this post.Loading... -
We are interested. What is the price?
(0 rating, 0 votes, rated)
You need to be a registered member to rate this post.Loading...
-
-
AuthorPosts
- You must be logged in to reply to this topic.