{"id":16,"date":"2008-07-17T20:56:02","date_gmt":"2008-07-17T15:26:02","guid":{"rendered":"https:\/\/2thenew.online\/blog\/?p=16"},"modified":"2015-07-24T17:11:19","modified_gmt":"2015-07-24T11:41:19","slug":"using-jquery-and-grails-to-create-chained-selects-drop-downs","status":"publish","type":"post","link":"https:\/\/2thenew.online\/blog\/using-jquery-and-grails-to-create-chained-selects-drop-downs\/","title":{"rendered":"Using jQuery and Grails to create chained selects \/ drop-downs"},"content":{"rendered":"<p>In <a title=\"Grails Web Application Development Services\" href=\"https:\/\/2thenew.online\/grails-application-development\">grails web application development<\/a>, use of frameworks has become essential . One of those frameworks which help us in making things simpler and life easy is jQuery.<\/p>\n<p><strong>Why jQuery ?<\/strong><\/p>\n<ul>\n<li>Fully Documented<\/li>\n<li>Great Community<\/li>\n<li>Tons of plugins<\/li>\n<li>Small size(14kb)<\/li>\n<li>Everything works in IE 6+,Firefox,Safari 2+,and Opera 9+<\/li>\n<\/ul>\n<p>jQquery is a very efficient framework which helps us in developing many things in a much easier way than they would be without using any framework.<\/p>\n<p>At <a title=\"TO THE NEW\" href=\"https:\/\/2thenew.online\">TO THE NEW Digital<\/a>\u00a0we are using Grails and jQuery on a project.<\/p>\n<p>In this blog, I want to share one of my experiences that I had met in this course of time. A series of mails\/questions in Grails mailing list on creating chained selects\/drop-downs prompted me to write this blog; since I had already done this.<\/p>\n<p><strong>Chain select <\/strong>basically means populating the next drop-down on the basis of what you select in the present drop-down.<\/p>\n<p>In this example, we have two drop-downs &#8211; <strong>manufacturer <\/strong>and <strong>model.<\/strong> We want the <strong>model<\/strong> drop-down to be populated on the basis of what the user selects in the <strong>manufacturer<\/strong> drop-down, without doing a full page refresh, using an Ajax call.<\/p>\n<p>Here are my classes, not the whole class but a part of the class<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Vehicle Class<\/strong><\/span><\/p>\n<p>[java]<br \/>\npublic  class Vehicle {<br \/>\n  Manufacturer manufacturer<br \/>\n  Model model<br \/>\n}<br \/>\n[\/java]<\/p>\n<p>The Manufacturer and model classes look like this<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Manufacturer Class<\/strong><\/span><\/p>\n<p>[java]<br \/>\npublic class Manufacturer {<br \/>\n  String manufacturerName<br \/>\n  static belongsTo = Vehicle<br \/>\n  static hasMany = [models: Model]<br \/>\n}<br \/>\n[\/java]<\/p>\n<p><strong>Model Class<\/strong><\/p>\n<p>[java]<br \/>\npublic class Model {<br \/>\n  String modelName<br \/>\n  static belongsTo = Manufacturer<br \/>\n}<br \/>\n[\/java]<\/p>\n<p>For this the vehicleCreate.gsp should look like this <strong>\/vehicle\/create.gsp<\/strong><\/p>\n<pre>            Home\r\n            Vehicle List<\/pre>\n<h1>Create Vehicle<\/h1>\n<p>[java]<\/p>\n<p>${flash.message}&lt;\/pre&gt;<br \/>\n&lt;table&gt;<br \/>\n&lt;tbody&gt;<br \/>\n&lt;tr&gt;<br \/>\n&lt;td valign=&quot;top&quot;&gt;&lt;label for=&quot;vehicleName&quot;&gt;Vehicle Name:&lt;\/label&gt;&lt;\/td&gt;<br \/>\n&lt;td valign=&quot;top&quot;&gt;&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;tr&gt;<br \/>\n&lt;td valign=&quot;top&quot;&gt;&lt;label for=&quot;vehicleManufacturer&quot;&gt;Manufacturer&lt;\/label&gt;&lt;\/td&gt;<br \/>\n&lt;td valign=&quot;top&quot;&gt;from=&quot;${VehicleManufacturer.list()}&quot;<br \/>\nname=&quot;vehicleManufacturerDropDown&quot; value=&quot;&quot;\/&gt;&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;tr&gt;<br \/>\n&lt;td valign=&quot;top&quot;&gt;&lt;label for=&quot;model&quot;&gt;Model&lt;\/label&gt;&lt;\/td&gt;<br \/>\n&lt;td valign=&quot;top&quot;&gt;from=&quot;${VehicleModel.list()}&quot;<br \/>\nname=&quot;model&quot; value=&quot;&quot;\/&gt;&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;\/tbody&gt;<br \/>\n&lt;\/table&gt;<br \/>\n&lt;pre&gt;<br \/>\n[\/java]<\/p>\n<p>[java]<br \/>\n$(document).ready(function() {<br \/>\n      $(&quot;#vehicleManufacturerDropDown&quot;).change(function() {<br \/>\n      $.ajax({<br \/>\n              url: &quot;\/ChainDropDown\/vehicle\/manufacturerSelected&quot;,<br \/>\n              data: &quot;id=&quot; + this.value,<br \/>\n              cache: false,<br \/>\n              success: function(html) {<br \/>\n              $(&quot;#models&quot;).html(html);<br \/>\n              }<br \/>\n            });<br \/>\n         });<br \/>\n       });<br \/>\n[\/java]<\/p>\n<pre> Now we will look at how this chained selection works using jQuery.Now what all we are left-out with is\r\nhandling this event in the VehicleController which is as simple as any other controller\u00a0action.\r\nJust add manufacturerSelected action in the controller and we are done!\r\n\r\n<strong>VehicleController<\/strong>\r\n<\/pre>\n<p>[java]<br \/>\nclass VehicleController {<br \/>\n  def manufacturerSelected = {<br \/>\n    def manufacturer = VehicleManufacturer.findById(params.id)<br \/>\n    render g.select(optionKey: &#8216;id&#8217;, from: manufacturer.models, id: &#8216;model&#8217;, name: &quot;model&quot;)<br \/>\n  }<br \/>\n}<br \/>\n[\/java]<\/p>\n<p>You can <a href=\"\/blog\/wp-ttn-blog\/uploads\/2008\/07\/sample.zip\">download<\/a> the complete source code for a working sample app with the examples used in this blog. Hope this helps somebody. Pradeep Garikipati<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In grails web application development, use of frameworks has become essential . One of those frameworks which help us in making things simpler and life easy is jQuery. Why jQuery ? Fully Documented Great Community Tons of plugins Small size(14kb) Everything works in IE 6+,Firefox,Safari 2+,and Opera 9+ jQquery is a very efficient framework which [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":13,"footnotes":""},"categories":[7],"tags":[4840,9,27],"class_list":["post-16","post","type-post","status-publish","format-standard","hentry","category-grails","tag-grails","tag-groovy","tag-jquery"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"In grails web application development, use of frameworks has become essential . One of those frameworks which help us in making things simpler and life easy is jQuery. Why jQuery ? Fully Documented Great Community Tons of plugins Small size(14kb) Everything works in IE 6+,Firefox,Safari 2+,and Opera 9+ jQquery is a very efficient framework which\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Deepak\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.online\/blog\/using-jquery-and-grails-to-create-chained-selects-drop-downs\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Using jQuery and Grails to create chained selects \/ drop-downs | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"In grails web application development, use of frameworks has become essential . One of those frameworks which help us in making things simpler and life easy is jQuery. Why jQuery ? Fully Documented Great Community Tons of plugins Small size(14kb) Everything works in IE 6+,Firefox,Safari 2+,and Opera 9+ jQquery is a very efficient framework which\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.online\/blog\/using-jquery-and-grails-to-create-chained-selects-drop-downs\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"article:tag\" content=\"grails\" \/>\n\t\t<meta property=\"article:tag\" content=\"groovy\" \/>\n\t\t<meta property=\"article:tag\" content=\"jquery\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2008-07-17T15:26:02+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2015-07-24T11:41:19+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Using jQuery and Grails to create chained selects \/ drop-downs | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"In grails web application development, use of frameworks has become essential . One of those frameworks which help us in making things simpler and life easy is jQuery. Why jQuery ? Fully Documented Great Community Tons of plugins Small size(14kb) Everything works in IE 6+,Firefox,Safari 2+,and Opera 9+ jQquery is a very efficient framework which\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/using-jquery-and-grails-to-create-chained-selects-drop-downs\\\/#article\",\"name\":\"Using jQuery and Grails to create chained selects \\\/ drop-downs | TO THE NEW Blog\",\"headline\":\"Using jQuery and Grails to create chained selects \\\/ drop-downs\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2008-07-17T20:56:02+05:30\",\"dateModified\":\"2015-07-24T17:11:19+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":11,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/using-jquery-and-grails-to-create-chained-selects-drop-downs\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/using-jquery-and-grails-to-create-chained-selects-drop-downs\\\/#webpage\"},\"articleSection\":\"Grails, Grails, Groovy, jquery\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/using-jquery-and-grails-to-create-chained-selects-drop-downs\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"name\":\"Grails\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"position\":2,\"name\":\"Grails\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/using-jquery-and-grails-to-create-chained-selects-drop-downs\\\/#listItem\",\"name\":\"Using jQuery and Grails to create chained selects \\\/ drop-downs\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/using-jquery-and-grails-to-create-chained-selects-drop-downs\\\/#listItem\",\"position\":3,\"name\":\"Using jQuery and Grails to create chained selects \\\/ drop-downs\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"name\":\"Grails\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/admin\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/admin\\\/\",\"name\":\"Deepak\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/using-jquery-and-grails-to-create-chained-selects-drop-downs\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0707e9f5d93472c1d7bc0afaf21c81e0d6df62135f7e1426eb9e78bdd944f149?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Deepak\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/using-jquery-and-grails-to-create-chained-selects-drop-downs\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/using-jquery-and-grails-to-create-chained-selects-drop-downs\\\/\",\"name\":\"Using jQuery and Grails to create chained selects \\\/ drop-downs | TO THE NEW Blog\",\"description\":\"In grails web application development, use of frameworks has become essential . One of those frameworks which help us in making things simpler and life easy is jQuery. Why jQuery ? Fully Documented Great Community Tons of plugins Small size(14kb) Everything works in IE 6+,Firefox,Safari 2+,and Opera 9+ jQquery is a very efficient framework which\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/using-jquery-and-grails-to-create-chained-selects-drop-downs\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/admin\\\/#author\"},\"datePublished\":\"2008-07-17T20:56:02+05:30\",\"dateModified\":\"2015-07-24T17:11:19+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Using jQuery and Grails to create chained selects \/ drop-downs | TO THE NEW Blog","description":"In grails web application development, use of frameworks has become essential . One of those frameworks which help us in making things simpler and life easy is jQuery. Why jQuery ? Fully Documented Great Community Tons of plugins Small size(14kb) Everything works in IE 6+,Firefox,Safari 2+,and Opera 9+ jQquery is a very efficient framework which","canonical_url":"https:\/\/2thenew.online\/blog\/using-jquery-and-grails-to-create-chained-selects-drop-downs\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.online\/blog\/using-jquery-and-grails-to-create-chained-selects-drop-downs\/#article","name":"Using jQuery and Grails to create chained selects \/ drop-downs | TO THE NEW Blog","headline":"Using jQuery and Grails to create chained selects \/ drop-downs","author":{"@id":"https:\/\/2thenew.online\/blog\/author\/admin\/#author"},"publisher":{"@id":"https:\/\/2thenew.online\/blog\/#organization"},"datePublished":"2008-07-17T20:56:02+05:30","dateModified":"2015-07-24T17:11:19+05:30","inLanguage":"en-US","commentCount":11,"mainEntityOfPage":{"@id":"https:\/\/2thenew.online\/blog\/using-jquery-and-grails-to-create-chained-selects-drop-downs\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.online\/blog\/using-jquery-and-grails-to-create-chained-selects-drop-downs\/#webpage"},"articleSection":"Grails, Grails, Groovy, jquery"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.online\/blog\/using-jquery-and-grails-to-create-chained-selects-drop-downs\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.online\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/grails\/#listItem","name":"Grails"}},{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/grails\/#listItem","position":2,"name":"Grails","item":"https:\/\/2thenew.online\/blog\/category\/grails\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/using-jquery-and-grails-to-create-chained-selects-drop-downs\/#listItem","name":"Using jQuery and Grails to create chained selects \/ drop-downs"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/using-jquery-and-grails-to-create-chained-selects-drop-downs\/#listItem","position":3,"name":"Using jQuery and Grails to create chained selects \/ drop-downs","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.online\/blog\/category\/grails\/#listItem","name":"Grails"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.online\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.online\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.online\/blog\/author\/admin\/#author","url":"https:\/\/2thenew.online\/blog\/author\/admin\/","name":"Deepak","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.online\/blog\/using-jquery-and-grails-to-create-chained-selects-drop-downs\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/0707e9f5d93472c1d7bc0afaf21c81e0d6df62135f7e1426eb9e78bdd944f149?s=96&d=mm&r=g","width":96,"height":96,"caption":"Deepak"}},{"@type":"WebPage","@id":"https:\/\/2thenew.online\/blog\/using-jquery-and-grails-to-create-chained-selects-drop-downs\/#webpage","url":"https:\/\/2thenew.online\/blog\/using-jquery-and-grails-to-create-chained-selects-drop-downs\/","name":"Using jQuery and Grails to create chained selects \/ drop-downs | TO THE NEW Blog","description":"In grails web application development, use of frameworks has become essential . One of those frameworks which help us in making things simpler and life easy is jQuery. Why jQuery ? Fully Documented Great Community Tons of plugins Small size(14kb) Everything works in IE 6+,Firefox,Safari 2+,and Opera 9+ jQquery is a very efficient framework which","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.online\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.online\/blog\/using-jquery-and-grails-to-create-chained-selects-drop-downs\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.online\/blog\/author\/admin\/#author"},"creator":{"@id":"https:\/\/2thenew.online\/blog\/author\/admin\/#author"},"datePublished":"2008-07-17T20:56:02+05:30","dateModified":"2015-07-24T17:11:19+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.online\/blog\/#website","url":"https:\/\/2thenew.online\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.online\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"article","og:title":"Using jQuery and Grails to create chained selects \/ drop-downs | TO THE NEW Blog","og:description":"In grails web application development, use of frameworks has become essential . One of those frameworks which help us in making things simpler and life easy is jQuery. Why jQuery ? Fully Documented Great Community Tons of plugins Small size(14kb) Everything works in IE 6+,Firefox,Safari 2+,and Opera 9+ jQquery is a very efficient framework which","og:url":"https:\/\/2thenew.online\/blog\/using-jquery-and-grails-to-create-chained-selects-drop-downs\/","og:image":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","article:tag":{"0":"grails","2":"groovy","3":"jquery"},"article:published_time":"2008-07-17T15:26:02+00:00","article:modified_time":"2015-07-24T11:41:19+00:00","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Using jQuery and Grails to create chained selects \/ drop-downs | TO THE NEW Blog","twitter:description":"In grails web application development, use of frameworks has become essential . One of those frameworks which help us in making things simpler and life easy is jQuery. Why jQuery ? Fully Documented Great Community Tons of plugins Small size(14kb) Everything works in IE 6+,Firefox,Safari 2+,and Opera 9+ jQquery is a very efficient framework which","twitter:image":"https:\/\/2thenew.online\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"16","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"article","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 23:16:20","updated":"2024-02-29 09:33:28","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.online\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.online\/blog\/category\/grails\/\" title=\"Grails\">Grails<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tUsing jQuery and Grails to create chained selects \/ drop-downs\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.online\/blog"},{"label":"Grails","link":"https:\/\/2thenew.online\/blog\/category\/grails\/"},{"label":"Using jQuery and Grails to create chained selects \/ drop-downs","link":"https:\/\/2thenew.online\/blog\/using-jquery-and-grails-to-create-chained-selects-drop-downs\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/comments?post=16"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/posts\/16\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/media?parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/categories?post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.online\/blog\/wp-json\/wp\/v2\/tags?post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}