I need to retrieve attribute value of <div>
tag using jquery
This is my html code where $_GET['availabel_table']
and $_GET['number-of-person']
are coming from url
<div id=main_menu_data class="grid_21 alpha prefix_1" availabel-table="<?php echo $_GET['availabel_table'] ?>" number-of-person="<?php echo $_GET['number_of_person'] ?>" >
Jquery code
var availabel_table = $("#main_menu_data").attr("availabel-table");
var number_of_person = $("#main_menu_data").attr("number-of-person");
but value is not coming in these variables. What i am doing wrong.