Display floating box search result with bulma css
up vote
3
down vote
favorite
i'm trying to display search result box using bulma, and nothing is working for me so far, i have tried bulma helpers like " is-clearfix " but it doesn't show still , i tried select and options, still doesn't display until i click, even tried honorables but couldn't get it to work, is there any way to do it using bulma css ?
my code is
starting with html:-
<div class="">
<input type="text" name="country_name" id="country_name" class="input" placeholder="Enter Country Name" />
<div id="countryList">
</div>
</div>
Ajax part:-
$.ajax({
url:"{{ route('autocomplete.fetch') }}",
method:"POST",
data:{query:query, _token:_token},
success:function(data){
$('#countryList').fadeIn();
$('#countryList').html(data);
}
});
php part:-
$output = '<ul class="dropdown-menu" style="z-index:4000 !important; position:absolute">';
foreach($data as $row)
{
$output .= '
<li><a href="#">'.$row->name.'</a></li>
';
}
$output .= '</ul>';
thanks in advance.
css bulma
add a comment |
up vote
3
down vote
favorite
i'm trying to display search result box using bulma, and nothing is working for me so far, i have tried bulma helpers like " is-clearfix " but it doesn't show still , i tried select and options, still doesn't display until i click, even tried honorables but couldn't get it to work, is there any way to do it using bulma css ?
my code is
starting with html:-
<div class="">
<input type="text" name="country_name" id="country_name" class="input" placeholder="Enter Country Name" />
<div id="countryList">
</div>
</div>
Ajax part:-
$.ajax({
url:"{{ route('autocomplete.fetch') }}",
method:"POST",
data:{query:query, _token:_token},
success:function(data){
$('#countryList').fadeIn();
$('#countryList').html(data);
}
});
php part:-
$output = '<ul class="dropdown-menu" style="z-index:4000 !important; position:absolute">';
foreach($data as $row)
{
$output .= '
<li><a href="#">'.$row->name.'</a></li>
';
}
$output .= '</ul>';
thanks in advance.
css bulma
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
i'm trying to display search result box using bulma, and nothing is working for me so far, i have tried bulma helpers like " is-clearfix " but it doesn't show still , i tried select and options, still doesn't display until i click, even tried honorables but couldn't get it to work, is there any way to do it using bulma css ?
my code is
starting with html:-
<div class="">
<input type="text" name="country_name" id="country_name" class="input" placeholder="Enter Country Name" />
<div id="countryList">
</div>
</div>
Ajax part:-
$.ajax({
url:"{{ route('autocomplete.fetch') }}",
method:"POST",
data:{query:query, _token:_token},
success:function(data){
$('#countryList').fadeIn();
$('#countryList').html(data);
}
});
php part:-
$output = '<ul class="dropdown-menu" style="z-index:4000 !important; position:absolute">';
foreach($data as $row)
{
$output .= '
<li><a href="#">'.$row->name.'</a></li>
';
}
$output .= '</ul>';
thanks in advance.
css bulma
i'm trying to display search result box using bulma, and nothing is working for me so far, i have tried bulma helpers like " is-clearfix " but it doesn't show still , i tried select and options, still doesn't display until i click, even tried honorables but couldn't get it to work, is there any way to do it using bulma css ?
my code is
starting with html:-
<div class="">
<input type="text" name="country_name" id="country_name" class="input" placeholder="Enter Country Name" />
<div id="countryList">
</div>
</div>
Ajax part:-
$.ajax({
url:"{{ route('autocomplete.fetch') }}",
method:"POST",
data:{query:query, _token:_token},
success:function(data){
$('#countryList').fadeIn();
$('#countryList').html(data);
}
});
php part:-
$output = '<ul class="dropdown-menu" style="z-index:4000 !important; position:absolute">';
foreach($data as $row)
{
$output .= '
<li><a href="#">'.$row->name.'</a></li>
';
}
$output .= '</ul>';
thanks in advance.
css bulma
css bulma
edited Nov 21 at 23:31
asked Nov 20 at 21:48
Mr Mohamed
14419
14419
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
This is what i came out with, hope this helps:-
in your controller:-
$output .= '
<li><a href="'.url("manage/users").'/'. $row->id .'" class="input" style="border:2px; width:400px;">'.$row->name.'</a></li>
';
}
$output .= '</ul>';
and in your view:-
<div class="">
<input type="text" name="country_name" id="country_name" class="input" placeholder="Enter Country Name" />
<div id="countryList" style="position:relative; width:100px;" >
</div>
</div>
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
This is what i came out with, hope this helps:-
in your controller:-
$output .= '
<li><a href="'.url("manage/users").'/'. $row->id .'" class="input" style="border:2px; width:400px;">'.$row->name.'</a></li>
';
}
$output .= '</ul>';
and in your view:-
<div class="">
<input type="text" name="country_name" id="country_name" class="input" placeholder="Enter Country Name" />
<div id="countryList" style="position:relative; width:100px;" >
</div>
</div>
add a comment |
up vote
0
down vote
accepted
This is what i came out with, hope this helps:-
in your controller:-
$output .= '
<li><a href="'.url("manage/users").'/'. $row->id .'" class="input" style="border:2px; width:400px;">'.$row->name.'</a></li>
';
}
$output .= '</ul>';
and in your view:-
<div class="">
<input type="text" name="country_name" id="country_name" class="input" placeholder="Enter Country Name" />
<div id="countryList" style="position:relative; width:100px;" >
</div>
</div>
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
This is what i came out with, hope this helps:-
in your controller:-
$output .= '
<li><a href="'.url("manage/users").'/'. $row->id .'" class="input" style="border:2px; width:400px;">'.$row->name.'</a></li>
';
}
$output .= '</ul>';
and in your view:-
<div class="">
<input type="text" name="country_name" id="country_name" class="input" placeholder="Enter Country Name" />
<div id="countryList" style="position:relative; width:100px;" >
</div>
</div>
This is what i came out with, hope this helps:-
in your controller:-
$output .= '
<li><a href="'.url("manage/users").'/'. $row->id .'" class="input" style="border:2px; width:400px;">'.$row->name.'</a></li>
';
}
$output .= '</ul>';
and in your view:-
<div class="">
<input type="text" name="country_name" id="country_name" class="input" placeholder="Enter Country Name" />
<div id="countryList" style="position:relative; width:100px;" >
</div>
</div>
answered Nov 22 at 2:51
Mohamed Gabr
361212
361212
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53402084%2fdisplay-floating-box-search-result-with-bulma-css%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown